A positive integer N and a sequence A=[A1,A2,⋯,A2N] of length 2N are given. Find the number of integer pairs (i,j) that satisfy the following conditions.
1≤i≤N.
1≤j≤N.
.
Input
The input is given in the following format.
NA1A2⋯
Output
Print the answer of the problem on the first line.