Given N tops and N bottoms colored 1 to N, count how many top and bottom pairs have different colors.
Vera owns NNN tops and NNN bottoms. The iii-th top and the iii-th bottom both have color iii. The NNN colors are all different.
Vera picks one top and one bottom. How many such pairs have a top and a bottom of different colors?
The input is given in the following form.
N
Print the number of pairs whose top and bottom have different colors, on one line.