import scala.io.StdIn


object Main extends App {
  val s  = StdIn.readLine.toString

  def solve(s: String) : String  = {
    var b = ' '
    s.foreach {v =>
      if (v == b) return "Bad" else b = v
    }
    "Good"
  }
  println(solve(s))

}
  

