#CCBCHBA0000087. Tam giác số tăng cột (Increasing-Column Triangle)

Tam giác số tăng cột (Increasing-Column Triangle)

Increasing-Column Triangle

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given nn, output nn rows. Row ii contains the integers 1,2,…,i1,2,\ldots,i in increasing order, separated by one space and without trailing spaces.

Input

One line contains the integer nn.

Output

Print nn rows in increasing row order.

Subtasks

  • Subtask 1 (20%): 1≤n≤31\le n\le 3.

  • Subtask 2 (30%): 1≤n≤91\le n\le 9.

  • Subtask 3 (50%): 1≤n≤301\le n\le 30.

Examples

Example 1

Input:

4

Output:

1
1 2
1 2 3
1 2 3 4

Explanation:

Row i prints columns numbered 1 through i. For this sample, the input is 4; the displayed rows follow these rules exactly.

Example 2

Input:

1

Output:

1

Explanation:

Row i prints columns numbered 1 through i. For this sample, the input is 1; the displayed rows follow these rules exactly.