'use strict'

const main = (INPUT) => {
  const S = INPUT.split('\n')[0]
  let ans = 'Good'
  for (let i = 1; i < S.length; i++) {
    if (S[i] == S[i - 1]) {
      ans = 'Bad'
    }
  }
  console.log(ans)
}

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