function main(input) {
  const lines = input.split('\n');
  lines.forEach(line => {
    if (line.length === 0) {
      return;
    }
    var flag = false;
    Array.prototype.forEach.call(line, (c, idx) => {
      if (idx === 0) {
        return;
      }
      if (c === line[idx - 1]) {
        flag = true;
        return;
      }
    });
    if (flag) {
      console.log('Bad');
    } else {
      console.log('Good');
    }
  });
}

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