"use strict";
const Main = input => {
    const array = input.split("");

    let result = "Good";
    for(let i = 0; i < array.length - 1; i++) {
        if(array[i] === array[i+1]) result = "Bad";
    }
    console.log(result);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));