## Problem Description

There are N points in the plane,wzc wants to know how many squares that can be formed within the points set.

## Input

There are multiple test cases.
For each case, the first line is a integers N (4<= N <= 50),the number of points in the plane.
Followed by N lines,each lines with two integers Xi,Yi(0<=Xi<=100,0<=Yi<=100),which is the position of the ith point.
Note that no two point will be the same.
## Output

For each test case, output the number of squares that you can find in the plane.

## Sample Input

4
0 0
0 1
1 0
1 1
4
1 2
2 1
1 0
0 1

## Sample Output

1
1

## Source

FZU 2009 Summer Training Qualification -- Hero Revival 2