
import java.io.File

import java.io.FileInputStream


fun main(args: Array<String>) {


    val T = readLine()!!.toString()



    for (i in 0.until(T.length)) {
        if (T[i] == '?') {
            print('D')
            continue
        }
        print(T[i])
    }


}
