while 1:i,n=1,input();exec(",\ni-=1;print ord('mUED'[-n])>>i%8&1"*3)[1:]*3;print