2017 Winter Waterloo Local ACM Contest, Problem A
Vera owns ~N~ tops and ~N~ pants. The ~i~-th top and ~i~-th pants have colour ~i~, for ~1 \le i \le N~, where all ~N~ colours are different from each other.
An outfit consists of one top and one pants. Vera likes outfits where the top and pants are not the same colour.
How many different outfits does she like?
- ~1 \le N \le 2017~
- ~N~ is integer
The input will be in the format:
Output one line with the number of different outfits Vera likes.
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3