by@__dAi00
AC
782ms
a=require("fs").readFileSync(0);for(i=51;i<a.length;i+=51)for(j=0;j<50;j++)a[i+j]+=a[j]-32;i-=51;while(a[++i]!=84)a[i]+=a[i-1]-32;console.log(""+a);
T K
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T KKKKT