'use strict';

function main(stdin) {
  const input = stdin.split('');
  let flag = false;

  input.reduce((a, b) => {
    if (a === b) flag = true;
    return b;
  });

  if (flag) console.log('Bad');
  else console.log('Good');
}

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