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

    var pre = 'z'
    for (c in S) {
        if (c == pre) {
            println("Bad")
            return
        }
        pre = c
    }
    println("Good")
}