문제
Quarantined for their protection during an outbreak of COWVID-19, Farmer John's cows have come up with a new way to alleviate their boredom: studying advanced physics! In fact, the cows have even managed to discover a new subatomic particle, which they have named the "moo particle".
The cows are currently running an experiment involving
The cows want to know the minimum number of moo particles that may be left after some arbitrary sequence of interactions.
SAMPLE INPUT:
3
0 0
1 1
-1 3
SAMPLE OUTPUT:
2SCORING:
Test cases 3-6 satisfy N≤1000.
Test cases 7-12 satisfy no additional constraints.
Problem credits: Dhruv Rohatgi
입력
The first line contains a single integer
출력
A single integer, the smallest number of moo particles that may remain after some arbitrary sequence of interactions.