var a, b, c: integer;
begin
readln(a);
b:=(a div 100)-(a div 1000)*10;
c:=a mod 10;
writeln(b, c);
end.
var a, b, c: integer;
begin
readln(a);
b:=(a div 100)-(a div 1000)*10;
c:=a mod 10;
writeln(b, c);
end.