fun main(args : Array<String>) {
    val S = readLine()!!

    var lastChar = ' '
    S.forEach {
        if (it == lastChar) {
            println("Bad")
            return
        }
        lastChar = it
    }
    println("Good")
}