#37040: python 1行解


BensonDC (python戰士)


t=input();print(max([int(x) for x in input().split()]))