function main(input) {
  const inputList = input.split('');
  // const oneLine = inputList[0];
  var result = 'Good';
  for (var i = 0; i < (inputList.length - 1); i++) {
    if (inputList[i] === inputList[i + 1]) {
      result = 'Bad';
      break;
    }
  }
  console.log(result);
};

main(require("fs").readFileSync("/dev/stdin", "utf8"));
