numbers_count = int(input()) numbers = [] for _ in range(numbers_count): numbers.append(int(input())) print(max(numbers))