atcoder#CF17FINALF. Distribute Numbers

Distribute Numbers

Score : 10001000 points

Problem Statement

Select any integer NN between 10001000 and 20002000 (inclusive), and any integer KK not less than 11, then solve the problem below.

Problem

We have NN sheets of paper. Write KK integers on each of them to satisfy the following conditions:

  • Each integer written must be between 11 and NN (inclusive).
  • The KK integers written on the same sheet must be all different.
  • Each of the integers between 11 and NN must be written on exactly KK sheets.
  • For any two sheet, there is exactly one integer that appears on both.

Input

There is no input in this problem.

Output

In the first line, print NN and KK separated by a space.

In the subsequent NN lines, print your solution. The ii-th of these lines must contain the KK integers written on the ii-th sheet, with spaces in between.

Sample Output

3 2
1 2
2 3
3 1

This is an example of a solution for N=3N = 3 and K=2K = 2.

Note that this output will be judged as incorrect, since the constraint on NN is not satisfied.