main(_){char*s=strdup(gets(&_)),*t;for(;t=gets(&_);puts(&_))for(;*t;t++)*t=='_'?*t=*s++:_;}