function Main(input) {
  var tmp = input.split('');
  for(var i = 0; i < tmp.length; i++) {
    if (tmp[i] === tmp[i - 1]) {
      console.log('Bad');
      return;
    }
  }
  console.log('Good');
}

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