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