a,b=1,'' for _ in[1]*9:b+=`a`;print(b+b[-2::-1]).center(17).rstrip();a+=1