fun main(array: Array<String>) {
    val s = readLine() ?: return
    val t = readLine() ?: return

    val candidates = 0.until(s.length - t.length + 1).mapNotNull {
        val candidate = s.substring(it, it + t.length)
        candidate.forEachIndexed { i, c ->
            if (t[i] != c && c != '?') {
                return@mapNotNull null
            }
        }
        Pair(it, candidate)
    }
    if (candidates.isEmpty()) {
        println("UNRESTORABLE")
        return
    }
    val c = candidates.last()
    val a = (s.substring(0, c.first) + t + s.substring(c.first + c.second.length, s.length))
        .replace("?", "a")
    println(a)
}
