Welcome back to the world of Enumeration, did you miss me?

In this task, you are required to complete the following task, very simple :)

Input Format

The input file contains a single integer $N$ ($1 \le N \le 10$)

Output Format

The output consists of $N$ lines, each containing $N$ integers, separated by a single space. The integers are from 1 to $N^2$ in an order specified below.

Sample Test Cases

Input Output
4 1 8 9 16
2 7 10 15
3 6 11 14
4 5 12 13
Click to copy.

Scoring: Per Subtask
Authored by wy23918
Appeared in WYHK 2025 Mini Contest 3