#000470

DSA-vrecice

Dario decided to play a game on the internet. It is called 'Spar vrećica'. In the game people from all over the world are voting on a poll. What Dario wonders is how many different IP addresses are logged. He managed to hack and download the IP log file and ended up in prison, so now it falls to you to find out the number of different IP addresses.


IP addresses consist of 4 numbers in range 0 to 255 separated with ':'. Some IP addresses can be also written as hexadecimal numbers, in which case numbers are in range 0 to FF.


InputIn the first line there is an integer N ( 0 < N < 1000 ) which represents the number of IP addresses in the log file.
In the next N lines there are IP addresses.
Note: Each hexadecimal IP address will contain at least one letter.

OutputPrint how many unique IP addresses there are.

Input:
3
195:211:5:13
151:122:3:56
C3:D3:5:D

Output:
2

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.