function main(input) {
  const args = input
  if (args[0] === args[1] || args[1] === args[2] || args[2] === args[3]) {
    console.log('Bad')
  } else {
    console.log('Good')
  }
}

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