гиа...
Program red; var a,max:integer; begin max:=-10000; readln(a); while a<>0 do begin if maxreadln(a); end; writeln(max); end.