object Main {
  def main(args:Array[String]) = {
   // val seq = readLine.split("")
    val input=io.Source.stdin.getLines().mkString("\n")
    println(solve(input).trim())
  }


def solve(aaa:String): String={
  val seq = aaa.split("").takeRight(4)
  var ret ="Good"
  for(i<- 0 to 2) {
    if (seq(i) == seq(i+1)){
      ret = "Bad"
    }
  }
  ret
}
}
