#CCBCHBA0000105. Tam giác số đối xứng (Symmetric Number Triangle)

Tam giác số đối xứng (Symmetric Number Triangle)

Symmetric Number Triangle

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given nn, print nn rows. Row ii contains 1,2,…,i1,2,\ldots,i followed by i−1,i−2,…,1i-1,i-2,\ldots,1. Print the central ii once and separate consecutive numbers by one space without trailing spaces.

Input

One line contains integer nn.

Output

Print exactly nn rows in order.

Subtasks

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

  • Subtask 2 (30%): 1≤n≤71\le n\le 7.

  • Subtask 3 (50%): 1≤n≤121\le n\le 12.

Examples

Example 1

Input:

3

Output:

1
1 2 1
1 2 3 2 1

Explanation:

Print 3 rows; row i increases to i, then decreases to 1 without repeating i.

Example 2

Input:

1

Output:

1

Explanation:

Print 1 rows; row i increases to i, then decreases to 1 without repeating i.