a=b=i=1 s=w="0 " exec's=s[i/2:]+"%d%%d"%a%b;a+=b;b+=a;i+=1;w=zip(*w)[::-1]+[s[i/2:0:-1]];'*47 for l in w:print" ".join(l)