import scala.io.StdIn._

object Main extends App {

  val arr = readLine().split("")
  val checkedArr = for(i <- 0 to 2)
    yield if (arr(i) == arr(i+1)) "Bad" else "Good"
  val result = if(checkedArr.contains("Bad")) "Bad" else "Good"
  println(result)
}
