#define constexpr /**/ auto o=(char*)malloc(1e5);int x,c,i;char*f(const char*a){for(;c=a[i];)o[i++]=c|=c&4?x=0:(x=++x%51-c%2*51)<1;return o;}