var a,i,max: integer;
begin
max:=0;
for i:=1 to 7 do
readln(a);
if (a>max) then max:=a;
end;
writeln(max);
end.
var a,i,max: integer;
begin
max:=0;
for i:=1 to 7 do
begin
readln(a);
if (a>max) then max:=a;
end;
writeln(max);
end.