One of the features of adult life is the proper approach to washing clothes:
Many examples can be invented, but here we will fix several basic rules of a "responsible washer":
Your wardrobe contains $$$N$$$ clothing items, each described by its color and type.
Determine the minimum number of washes required according to the rules described above.
The first line contains one integer $$$N$$$ $$$(1 \le N \le 10^4)$$$ — the number of clothing items available.
Each of the next $$$N$$$ lines contains the description of one clothing item in the wardrobe: two words separated by a space $$$c_i$$$ $$$t_i$$$ — the color and the type of the clothing item, respectively.
$$$c_i$$$ can be one of the following words:
$$$t_i$$$ can be one of the following words:
Print one integer — the minimum number of washes taking into account all the rules described above.
10Red SocksBlack JeansWhite T-shirtYellow T-shirtRed HoodieGreen SocksBlue T-shirtWhite T-shirtBlue HoodieGray Trousers
7
8Yellow T-shirtBlack T-shirtRed T-shirtGray T-shirtRed T-shirtBlue T-shirtGreen T-shirtBlue T-shirt
4
6Red SocksBlack SocksBlack SocksWhite SocksBlue SocksWhite Socks
1
9Blue HoodieBlack JeansWhite TrousersGreen HoodieRed HoodieBlue JeansBlue JeansWhite JeansWhite Hoodie
6
Example 1.
In total, there are $$$7$$$ washes: $$$1$$$ for socks, $$$3$$$ for T-shirts, $$$1$$$ for the bright sweater, and $$$2$$$ for the dark sweaters and trousers.
Example 2.
In total, there are $$$4$$$ washes: one each for red, yellow, green, and dark T-shirts, regardless of the number of items of each color.
Example 3.
All socks are washed in one wash, regardless of their number and color.
Example 4.
In total, there are $$$6$$$ washes.
| Name |
|---|


