program Project2; {$APPTYPE CONSOLE} uses SysUtils; var i,n,m,j: integer; inp,outp: text; a: array[1..30]of array[1..30]of longint; begin assign(inp,'legacy.in'); assign(outp,'legacy.out'); reset(inp); rewrite(outp); readln(inp,n,m); for i:=1 to n do for j:=1 to n do readln(inp,a[i][j]); for i:=1 to n do begin for j:=1 to n do write(outp,a[i][j],' '); writeln(outp); end; close(inp); close(outp); end.