import scala.annotation.tailrec
import scala.io.StdIn

object Main extends App {
  val S = StdIn.readLine()

  @tailrec
  def rec(str: String, currentIdx: Int = 0): Boolean = if (currentIdx + 2 >= str.length) {
    true
  } else {
    if (str.charAt(currentIdx) == str.charAt(currentIdx + 1)) {
      false
    } else {
      rec(str, currentIdx + 1)
    }
  }

  if (rec(S)) {
    println("Good")
  } else {
    println("Bad")
  }
}