Program Pr1;uses crt;var max,a:integer;Beginclrscr;max:=0;a:=1;while a<>0 do begin readln(a); if a>max then max:=a; end;writeln(max);end.
Program Pr1;
uses crt;
var max,a:integer;
Begin
clrscr;
max:=0;a:=1;
while a<>0 do begin
readln(a);
if a>max then max:=a;
end;
writeln(max);
end.