(function() {
    'use strict';
 
    var lines = [];
    require('readline').createInterface({
      input: process.stdin,
      output: process.stdout
    }).on('line', function(line) {
      lines.push(line);
    });
    process.stdin.on('end', function() {
      //lines.forEach(function(line) {
        //var tokens = line.split(' ').map(Number);
        //    console.log(tokens[0] + ' ' + tokens[1]);
      //}
      //)
      ;
      
    // ToDo start
      var SP = lines[0].replace(/\?/g,'.')
      var T = lines[1]

      for ( var i=-1*(T.length);i>=-1*SP.length;i--){
        var re = new RegExp(SP.substr(i,T.length))
        if(T.match(re)){
            console.log( (SP.substr(0,SP.length+i) + T +SP.substr(SP.length+i+T.length)).replace(/\./g,'a') )
            return;
        }
      }
      console.log("UNRESTORABLE")
      return;

    });

    
})();
  
  