
fun main(args:Array<String>) {
    val S = readLine()!!
    var flag = false
    var acc = ' '
    for(c in S) {
        if(acc == c) {
            flag = true
            break
        } 
        acc = c
    }
    if(flag) {"Bad"} else {"Good"}.run(::println)
}

