s[];main(c){char*p=gets(s);for(;c=~getchar();)*p?*p+++=c%4+1:(p=s);puts(s);}