Problem

2 /7


side diagonal

Problem

Given a number n. Create an nxn array and fill it with the following rule:

The numbers on the diagonal going from the top right to the bottom left corner are 1.
Numbers above this diagonal are 0.
Numbers below this diagonal are 2.

Display the resulting array. Separate numbers in a line with one space.

Input
The input is a single number n (n<=100).

Imprint
Display the filled array.
 
Example
# Input Output
1 4 0 0 0 1
0 0 1 2
0 1 2 2
1 2 2 2