SP15556 IITKWPCC - Count right angle triangles

Description

You are given n points in a 2D plane. You are asked these an inherently simple questions about them. You have to find out number of right angle triangles (having base and height parrallel to axis) with the property that length of base and height is same.

Input Format

First Line will n: number of points. (n

Output Format

You have to output a single line containing the answer to question.