Magic square is the square array of positive integers that the sums of the numbers in each row, each column, and both main diagonals are the same.

We can give you a n x n magic square, the value n is expected to be in [3, 100].

Input an integer n in [3, 100]:


XML To JSON
: Input your strings, the tool can convert XML to JSON for you.

X