a=bytearray('90-\n'[ord(c)%7%4]for c in'e'*11+open('../fd/0').read()) exec'a+=chr(min(a.pop(0),*[90/a[i]*a[i]+1for i in-1,0,-11,10]));'*971 print a