begin
 randomize;
 writeln(random(50)+1, ' ', random(50)+1);
end.
