val a="0"*123 toArray;while(0<1){val s=readLine val t=s.replace('?',a(s.max)) if(s>t)println(t) a(s.max)=t.min}