import sys data = input() max_number = -sys.maxsize while data != "Stop": num = int(input) if num > max_number: max_number = num print(max_number)