print(max([int(input()) for i in range(int(input()))]))