
function Main(input) {
    var S = input.toString();

    if (S.charAt(0) === S.charAt(1)) {
        console.log('Bad');
    } else if (S.charAt(1) === S.charAt(2)) {
        console.log('Bad');
    } else if (S.charAt(2) === S.charAt(3)) {
        console.log('Bad');
    } else {
        console.log('Good');
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));