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