n;main(i){for(;n<512;n++)for(i=printf("%04o is ",n)+2;~i;)putchar(i--?n>>i&1?"xwr"[i%3]:45:10);}