program a050; var a:array[1..100000]of dword; i,n,max:longint; begin read(n); max:=0; for i:=1 to n do begin read(a[i]); if a[i]>max then max:=a[i]; end; while not eof do begin write(max); read(n); max:=0; for i:=1 to n do begin read(a[i]); if a[i]>max then max:=a[i]; end; end; end.