program eee;
const n=5;
var
a:array[1..n] of integer;
i,max: integer;
begin
for i:=1 to n do begin
readln(A[i]);
if max<A[i] then
max:=A[i];
end;
writeln(max);
end.
program eee;
const n=5;
var
a:array[1..n] of integer;
i,max: integer;
begin
for i:=1 to n do begin
readln(A[i]);
if max<A[i] then
max:=A[i];
end;
writeln(max);
end.