402906: GYM100942 G Pots

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

G. Potstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

In a cooking pot shop sales decreased dramatically. Marketing managers of the shop did a research and found out that the reason was frying pans. People stopped buying pots as pans are both cheaper and more compact during storage. The Board of Directors made a decision to extent assortment and start selling also pans. The first batch is already ordered.

Warehouse logistics department was given a task to find a place for the new goods. Now there are N pots in the warehouse. Every pot has a diameter Di. There is the only way to save space — it is possible to embed into any pot another one of a smaller diameter, into which in turn other can be embedded.

Help the logistics specialist to find a minimal number of pots in the warehouse in which all other pots can be embedded.

Input

The first line contains a single number N (1 ≤ N ≤ 1000). The second line contains N integers Di separated by spaces (1 ≤ Di ≤ 10 000).

Output

Output the obtained number.

ExamplesInput
5
7 5 2 5 2
Output
2

加入题单

算法标签: