'use strict'

function Main(input) {
  const S = input.split("")
  for(let i=0; i<S.length-1; i++) {
    if(S[i] === S[i+1]) {
      console.log("Bad")
      return
    }
  }
  console.log("Good")

}
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim())