Nandu works in a company that transport rings. For each ring transported by Nandu he gets some coins. He transports rings by fitting one ring into another. A ring fits into another ring if and only if the outer radius of first ring is less than or equal to inner radius of other ring. Nandu want to maximize his coins. So he wants your help to find the maximum possible number of coins he can get.