x=int(input())najwieksza=xwhile x!=0: x=int(input()) if x>najwieksza: najwieksza=xprint(najwieksza)
2 3 8 7 99 1 3 33 0
99
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!