var max,x,t:longint;
begin
read(max);t:=1;
while not eoln do
begin
read(x);
t:=t+1;
if x>max then max:=x;
end;
writeln(t,' ',max);
end.
var max,x,t:longint;
begin
read(max);t:=1;
while not eoln do
begin
read(x);
t:=t+1;
if x>max then max:=x;
end;
writeln(t,' ',max);
end.