var a,b: integer;
begin
readln(a,b);
writeln('a)');
if a>b then writeln(b,' ',a) else writeln(a,' ',b);
writeln('б)');
if a<b then writeln(b,' ',a) else writeln(a,' ',b);
end.
var a,b: integer;
begin
readln(a,b);
writeln('a)');
if a>b then writeln(b,' ',a) else writeln(a,' ',b);
writeln('б)');
if a<b then writeln(b,' ',a) else writeln(a,' ',b);
end.