function Main(input) {

  var input = input.split("\n");
  var s = input[0];

  var check = /([A-Za-z0-9])\1/;
  var result = check.test(s);
  if(result) {

    console.log("Bad");
  } else {

    console.log("Good");
  }


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