Begin
writeln('1 2 3 4 5 6 7 8 9 10', #13, '0 1 2 3 4 5 6 7 8 9', #13, '0 0 1 2 3 4 5 6 7 8', #13,
'0 0 0 1 2 3 4 5 6 7', #13, '0 0 0 0 1 2 3 4 5 6', #13, '0 0 0 0 0 1 2 3 4 5', #13,
'0 0 0 0 0 0 1 2 3 4', #13, '0 0 0 0 0 0 0 1 2 3', #13, '0 0 0 0 0 0 0 0 1 2', #13,
'0 0 0 0 0 0 0 0 0 1');
end.
:)