object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val s = sc.next
    sc.close()

    s.sliding(2).toList.count(_.distinct.length == 1) match {
      case 0 => println("Good")
      case _ => println("Bad")
    }
  }
}