{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXN = 1000; var N, i, j, pieces : LongInt; tiling : Array[0..MAXN-1] of Array[0..MAXN-1] of LongInt; begin { uncomment the two following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } ReadLn(N); pieces := 0; for i := 0 to MAXN-1 do begin for j := 0 to MAXN-1 do tiling[i][j] := 0; end; { INSERT YOUR CODE HERE } WriteLn(pieces); for j:=0 to N-1 do begin for i:=0 to N-1 do Write(tiling[j][i], ' '); WriteLn(); end; end.