You are staying at point \((1,\ 1)\) in a matrix \(10^9 \times 10^9\). You can travel by following these steps:
The matrix contains \(N\) apples. The \(i^{th}\) apple is at point \((x_i,\ y_i)\). You can eat these apples while traveling.
For each of the apples, your task is to determine the number of apples that have been eaten before.
Input format
Output format
Print \(N\) lines containing a single integer.
-