Winnie has fallen in love with the people from the K-pop band group: BTS. In this group, there are
You want to know, how many pairs of people will receive the same amount of affection from Winnie at a common point in time (including negative time)?
Input Specification
The first line will contain the integer
The next
Output Specification
Output the number of pairs of people that will receive the same amount of affection from Winnie at a common point in time.
Constraints
Subtask 1 [10%]
Subtask 2 [90%]
No additional constraints.
Sample Input
Copy
4
1 3
2 3
0 2
1 2
Sample Output
Copy
5
Comments