program z1;
var a, b: integer;
begin
if a mod 10 < b mod 10 then
write(a mod 10);
end
else
write(b mod 10);
end;
end.
program z1;
var a, b: integer;
begin
if a mod 10 < b mod 10 then
begin
write(a mod 10);
end
else
begin
write(b mod 10);
end;
end.