from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) bef = 0 nxt = [(0,1),(1,0),(0,-1),(-1,0)] A = [[-1]*N for _ in range(N)] now = 1 nx,ny = 0,0 A[nx][ny] = str(now).zfill(3) def is_ok(x,y): return (0<=x