Many people know about magic squares --- squares that contain distinct numbers and have equals sums of rows and columns. Recently Eve has heard about magic squares, and now she has invented her own version: elegant squares.
Eve calls a square of n×n integers elegant if the following conditions are satisfied:
For example, the picture below shows an elegant 3×3 square.
1\ 6\ 3521521073
All of its entries are distinct positive square free integers, and product of any row and any column is 210.
Help Eve, find an n×n elegant square. All numbers in the square must not exceed 1018. It is guaranteed that for the given constraints there exists such square.
The input file a single integer n (3≤n≤30).
Output n×n integers: the found elegant square. All printed integers must not exceed 1018.