Maximum Sequence
Problem
The sequence consists of natural numbers not exceeding 109 and ends with the number 0. Determine the value of the largest element in the sequence.
Input
A sequence of integers is entered, ending with the number
0 (the number
0 itself is not included in the sequence, but serves as a sign of its end).
Imprint
Print the answer to the problem.
Examples
| # |
Input |
Output |
| 1 |
2
6
9
8
0 |
9 |
Запрещенные операторы: list; [; sort