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.