const main = input => {
    s = input[0];
    var ans = 0,i;
    for(i=0; i<s.length-1; i++) {
        if (s[i]==s[i+1]) ans++;
    }
    console.log(ans?'Bad':'Good');
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));