#CCBCHBA0000100. Bảng cửu chương 1 đến n (Multiplication Table 1 to n)

Bảng cửu chương 1 đến n (Multiplication Table 1 to n)

Multiplication Table 1 to n

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given nn, print an nn-by-nn multiplication table. The element in 1-indexed row ii, column jj is i×ji\times j. Separate numbers with one space and no trailing spaces.

Input

One line contains integer nn.

Output

Print nn lines: row ii contains i×1,…,i×ni\times 1,\ldots,i\times n.

Subtasks

  • Subtask 1 (20%): 1≤n≤21\le n\le 2.

  • Subtask 2 (30%): 1≤n≤51\le n\le 5.

  • Subtask 3 (50%): 1≤n≤91\le n\le 9.

Examples

Example 1

Input:

3

Output:

1 2 3
2 4 6
3 6 9

Explanation:

The value in row i and column j is the product i*j. For this sample, the input is 3; the displayed rows follow these rules exactly.

Example 2

Input:

1

Output:

1

Explanation:

The value in row i and column j is the product i*j. For this sample, the input is 1; the displayed rows follow these rules exactly.