John collects gemstones. In his collection are different gemstones. Each of these gemstones are marked with a number , which represents the type of gemstone it is. John is looking to make some money off his collection, so he wants to find the rarest gemstone to sell (since rarer obviously means better). However, he has a lot of gems, and there might be multiple equally rare types. He has promised a cut of the profit to you if you can find them all. Can you do it?
Limitations
Input Specification
The first line of input will be .
The next lines will consist of one integer each, representing the type of gemstone .
Output Specification
A series of lines each containing 1 integer, representing all the rarest types of gemstone in John's collection, sorted from least to greatest.
Sample Input
4
1
2
2
3
Sample Output
1
3
Comments