function main(input) {
  var data = input.split("");
  var result = "Good";

  for(i = 0; i < data.length - 1; i++){
    if(data[i] === data[i - 1]){
      result = "Bad";
    }
  }

  console.log(result);
}

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