"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = arg[0].split("").map(n=>parseInt(n));
    
    let last = N[0];
    
    for(let i=1; i<N.length; i++) {
        if(last === N[i]) {
            console.log("Bad");
            return;
        }
        
        last = N[i];
    }
    
    console.log("Good");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));