by@hakatashi_B
TLE
c;main(x){main(putchar(read(0,&c,1)>x|c)&4?1:-~x%51-c%2*51);} T
K