Spiral: Spiral // Advanced

 
Print a spiral of numbers in a nxn square starting from the top left.

Input Format

The first line contains an integer, n, the width and height of the spiral

Sample Input

2

Output Format

a spiral

Sample Output

1 2
4 3




You must be logged in to submit a solution.