b,c;main(d){for(;~(c=getchar());d=++d%51)d*=c<84,b=c&1|b&&d,putchar(!d|b?7:c);}