The most round number
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The number is more round than other on condition that it has more concluding zeroes than other. If two numbers have equal amount of concluding zeroes, the smaller number is more round.
Input
First line of an input file contains one integer N
(1 ≤ N ≤ 100
), it is amount of numbers. Each line from next N
lines contains one integer from 1
up to 10^9
.
Output
Print into an output file the most round number among given N
numbers.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 39%