d=id(0)%3 w=16+d%2*12 D=(['-']*w+["\n"])*(16+d+d/2*9) for l in open('../fd/0'):y,x,D[int(y)-~-int(x)*~w-(~-d*25^82)]=l.split() print"".join(D)