printЗадачи командного чемпионата

print8. The most round number

Ограничения: время – 1s/2s, память – 32MiB Ввод: input.txt или стандартный ввод Вывод: output.txt или стандартный вывод copy
Послать решение Blockly Посылки Темы Где Обсудить (0)

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.
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`.
Print into an output file the most round number among given `N` numbers.

Input Sample

4
71200
10
200
10001

Output Sample

200
loading