c;main(x){read(0,&c,1),main(putchar(c|x<1)&4?1:-~x%51-c%2*51);}