fun main(args: Array<String>) {
    var S = next().toCharArray()
    var f = false
    for (n in 1 until 4) {
        if (S[n-1] == S[n]) f = true
    }
    val ans = if (f) "Bad" else "Good"
    println("${ans}")
}
fun next() = readLine()!!
