"use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.trim().split(/ |\n/), cid = 0;

function main() {
    let ans = cin[0].split("").map(x => x == '?' ? 'D' : x);
    console.log(ans.join(''));
}
main();
