After Sheldon's challange, its time Penny challanges Sheldon. She and Leonard come up with a game where they will give a list of numbers to Sheldon. Each entry in the list is a set of 3 numnbers is some order. Sheldon has to tell how many sets of the list form an arithmatic progression and how many forma geometric progression. Since Sheldon is very busy working on his thesis about string thoery, he asks you to write a program what will solve this problem for him.
The first line contains an integer N - The number of entries in the list. N lines follow each contaning a set of 3 numbers.
Print the number of sets which form an arithmatic progression in the first line. Print the number of sets which form a geometric progression in the second line.
1 < N < 100000 -1000000 < Each integer in different sets < 1000000