for(;i=readline();i>b?print(it.match(b)):it=b+"="+b+it)b=i.replace('?','.')