fun main(args: Array<String>) {
  val numList = readLine()!!.toList()
  for (i in 0 until numList.size - 1) {
    if (numList[i] == numList[i+1]) {
      println("Bad")
      return
    }
  }
  println("Good")
  return
}
