uses crt;var ch,a,b:integer;
beginreadln(Ch);a:=ch div 10;b:=ch mod 10;if a >b then writeln(a) else writeln(b);readln;
end.
uses crt;
var ch,a,b:integer;
begin
readln(Ch);
a:=ch div 10;
b:=ch mod 10;
if a >b then writeln(a) else writeln(b);
readln;
end.