R=range(81) for b in R: s="" for x in R: y=b;w=27 while w and(x/w+y/w)%2==0:x%=w;y%=w;w/=3 s+=" X"[w<1] print s