print((function (fh) local n,_,h,l = fh:read("*n"),fh:read("*n"),0,1001 for _=1,n do local t=fh:read("*n") h,l=t>h and t or h,t