output_description: In the first line, print N and K separated by a space.
  
  In the subsequent N lines, print your solution. The i-th of these lines must
  contain the K integers written on the i-th sheet, with spaces in between.
  
  * * *
input_description: There is no input in this problem.
attempt: P = 37
  ANS = []
  for a in range(P):
      for b in range(P):
          t = [P * P + (pow(b, P - 2, P) if b else 0)]
          for i in range(P):
              t.append((a * P + (b * P + 1) * i) % (P * P))
          ANS.append(t)
  for a in range(P):
      t = [P * P + P]
      for i in range(P):
          t.append(a + i * P)
      ANS.append(t)
  t = []
  for i in range(P + 1):
      t.append(P * P + i)
  ANS.append(t)
  
  print(P + 1, len(ANS))
  for ans in ANS:
      print(*[a + 1 for a in ans])
  
problem_description: Statement
  
  Select any integer N between 1000 and 2000 (inclusive), and any integer K not
  less than 1, then solve the problem below.
samples: []