문제
It turns out there is one factor that matters far more than any other when determining whether two cows are compatible as potential friends: whether they like similar flavors of ice cream!
Farmer John's
Please determine the number of pairs of cows that are NOT compatible
Problem credits: Yang Liu
입력
The first line of input contains
출력
Please output the number of pairs of cows that are not compatible.
예제
4
1 2 3 4 5
1 2 3 10 8
10 9 8 7 6
50 60 70 80 90
4
Here, cow 4 is not compatible with any of cows 1, 2, or 3, and cows 1 and 3 are also not compatible.