fun main(args: Array<String>) {
    val s: String = readLine()!!
    var num = 'x'
    var flg = true
    for(c in s){
        if(num == c){
            flg = false
            break
        }
        num = c
    }
    println(if (flg) "Good" else "Bad")
}