Filling#4750

Filling

1 second
64 megabytes
Very easy

Fill the array n \times n with a "snake" (see example).

Input

One integer (n \le 500).

Output

Print the array n \times n filled with a "snake".

Examples

Example 1

Loading
Loading