function Main(input){

N=parseInt(input);

answer = "AB";
a1="C";
a2="D";

if (N < 1000) {
    answer = answer + a1;
}
else {
    answer = answer + a2;
}

console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
