The most round number#441

The most round number

1 second
64 megabytes
Very easy

A number is said to be more round than another if it has more trailing zeros. If two numbers have the same number of trailing zeros, the smaller number is considered more round.

Input

The first line contains the integer (1 \leq N \leq 100), the number of integers. Each of the next lines contains one integer from to 10^9.

Output

Print the most round number among the given numbers.

Examples

Example 1

Loading
Loading