不會請反白
while True : try: n=int(input()) num=list(map(int,input().split())) print(max(num)) except: break