Ho, Ho, Ho!
It's Christmas time and our friendly grandpa Santa Claus is busy distributing gifts to all the nice children. With the rising population, Santa's workload every year gets increased and he seeks your help to wrap the gifts with fancy wrapping papers while he gets them distributed. 
Everything was going great until you realised that you'll fall short of wrapping paper. But luckily, you get a very innovative idea, that will allow you to pack all the remaining gifts without worrying about lack of wrapping paper. Any guesses what the idea is? Using ice for wrapping, obviously! That's the only thing available at the North Pole.
Now, in order to reduce your trips to the ice factory, you decide to write a program that helps you visualize how much ice is needed for a particular gift. 

-----Input:-----
Input will consist of a single line with size $n$.

-----Output:-----
Print the ice wrapped gift box for the given size. 

-----Constraints-----
- $0 \leq n \leq 1000$

-----Sample Input:-----
4

-----Sample Output:-----
4 4 4 4 4 4 4
4 3 3 3 3 3 4
4 3 2 2 2 3 4
4 3 2 1 2 3 4
4 3 2 2 2 3 4 
4 3 3 3 3 3 4
4 4 4 4 4 4 4

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'n=int(input())\r\nfor i in range(n,0,-1):\r\n    k=n\r\n    j=1\r\n    while j<=2*n-1:\r\n        print(k,end=" ")\r\n        j+=1\r\n        if i<k:\r\n            k-=1\r\n        if(i==k):\r\n            for l in range(2*k-1):\r\n                if j>2*n-1:\r\n                    break\r\n                print(k,end=" ")\r\n                j+=1\r\n            k+=1\r\n            while k!=i:\r\n                if j>2*n-1:\r\n                    break\r\n                print(k,end=" ")\r\n                k+=1\r\n                j+=1\r\n    print()\r\nfor i in range(2,n+1):\r\n    k=n\r\n    j=1\r\n    while j<=2*n-1:\r\n        print(k,end=" ")\r\n        j+=1\r\n        if i<k:\r\n            k-=1\r\n        if(i==k):\r\n            for l in range(2*k-1):\r\n                if j>2*n-1:\r\n                    break\r\n                print(k,end=" ")\r\n                j+=1\r\n            k+=1\r\n            while k!=i:\r\n                if j>2*n-1:\r\n                    break\r\n                print(k,end=" ")\r\n                k+=1\r\n                j+=1\r\n    print()'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13541