const main = (inputs) => {
  var S = inputs[0].split("");
  var ans = true;
  var tmp = "";
  S.forEach(v=>{
    if(v==tmp) ans = false;
    tmp = v;
  })
  console.log(ans?"Good":"Bad");
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));
