Подразделы

Дата и время

20/12/2024 23:13:40

Авторизация

Имя:
Пароль:
Зарегистрироваться
Восстановить пароль
 

print1049. The most round number

printThe 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