import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val s = sc.next()
    var judge = 0
    s.forEachIndexed { index, c ->
        if (index > 0) {
            var prev = s[index - 1]
            if (prev == c) {
                judge = 1
            }
        }
    }
    if (judge == 0) {
        println("Good")
    } else {
        println("Bad")
    }
}