object Main extends App {
  val S = io.StdIn.readLine().toString.toCharArray.map(_.toInt)

  var prev = 0
  var result = "Good"

  S.zipWithIndex.foreach {
    case (s, 0) => prev = s
    case (s, _) =>
      if (s == prev) result = "Bad"
      prev = s
  }

  println(result)
}