D=map(bytearray,['-'*90]*90);w=z=() for l in open('../fd/0'):y,x,f=l.split();z+=int(y)+9,;w+=int(x)+9,;D[w[-1]][z[-1]]=f for l in D[min(w):max(w)+1]:print l[min(z):max(z)+1]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).