import java.util.*
fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val s = cin.next()
    var post = ' '
    var ok = true
    for (i in s) {
        if (post == i) {
            ok = false
            break
        }
        post = i
    }
    if (ok) {
        println("Good")
    } else {
        println("Bad")
    }
}