'use strict'

function main(input){
  const s = input.split('').map(x => parseInt(x));

  if(s[0]==s[1] || s[1]==s[2] || s[2]==s[3]){
    console.log('Bad');
  }else{
    console.log('Good');
  }

}

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