object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val S = sc.next
    var prev = ' '
    for (s <- S) {
      if (prev == s) {
        println("Bad")
        sys.exit
      }
      prev = s
    }

    println("Good")
  }
}