'use strict'
const Main = (arg) => {
  let input = arg.trim().split('\n');
  let S = input[0].split('').map(Number);
  let Ans = 0;
  for (let i = 0; i < 3; i++) {
    if (S[i] === S[i + 1]) {
      Ans += 1;
    }
  }
  console.log(Ans===0?'Good':'Bad');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
