There is a group of n children. According to a proverb, every man to his own taste. So the children value strawberries and raspberries differently. Let us say that i-th child rates his attachment to strawberry as s_i and his attachment to raspberry as r_i.
According to another proverb, opposites attract. Surprisingly, those children become friends whose tastes differ.
Let us define friendliness between two children v and u as p(u,v)=(s_u−s_v)2+(r_u−r_v)2.
The friendliness between three children v, u, w is half the sum of pairwise friendlinesses: p(u,v,w)=2p(u,v)+p(u,w)+p(v,w).
The best friends are such pairs of children (u,v) that u=v and p(u,v)≥p(u,v,w) for every w. Your goal is to find all pairs of best friends.
In the first line there is one integer n, the number of children (2≤n≤2⋅105).
Each of the next n lines contains two integers s_i and r_i (−108≤s_i,r_i≤108).
It is guaranteed that, for every two children, their tastes differ. In other words, if u=v, then s_u=s_v or r_u=r_v.
On the first line, output the number of pairs of best friends.
After that, output those pairs. Each pair should be printed on a separate line. A pair is denoted by two integers: the indices of children in this pair. Children are numbered in the order of input starting from 1. You can output pairs in any order. You can output indices in each pair in any order.
It is guaranteed that the required number of pairs doesn't exceed 106.