Matrix 1#9982

Matrix 1

1 second
64 megabytes
Very easy

Given a natural number , your task is to produce a square matrix of size n \times n. This matrix should be filled with integers ranging from to n - 1, following the pattern demonstrated in the example.

Input

A natural number , where 1 \leq n \leq 10.

Output

Display a matrix of size n \times n, formatted as illustrated in the example.

Examples

Example 1

Loading
Loading