while 1:_=raw_input();l=len(_)-4;a=0;exec"s=_.replace('?',`a`);a+=sum(ord(s[4+_])%30*~[_,_%2*2][l&1]for _ in range(l))%(9^l/4)>0;"*l;print s