object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val s = sc.next

  val ans = s.foldLeft(("", false)){
    (acc, value) =>
      if (acc._2 || acc._1 == value.toString)
        (value.toString, true)
      else
        (value.toString, false)}

  if (ans._2) println("Bad") else println("Good")
}