function Main(input) {
    ans = 0
    lines = input.split("\n")
    S = lines[0]
    s = S[0]
    ans = 'Good'
    for(i =1; i < S.length; i++) {
        if (s == S[i]) {
          ans = 'Bad'
          break;
        }
        s = S[i]
    }
    console.log(ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
