t;main(w){char p[99];gets(p);while(~scanf("%c",&w))putchar(w=='_'?p[t++]:w);}