program main
    implicit none
    character t*200000
    integer i,n

    read(*,*) t
    n = len_trim(t)
    do i = 1,n
        if(t(i:i) == "?") then
            t(i:i) = "D"
        end if
    end do

    write(*,*) trim(t)

end program

