'use strict'

function main(input) {
  input = input.slice('')
  let prev
  for (let i = 0; i < input.length; i++) {
    if (input[i] === prev) {
      console.log('Bad')
      return false
    } else {
      prev = input[i]
    }
  }
  console.log('Good')
  return false
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))