import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val s = sc.next()
    repeat(10) {
        val ss = "$it$it"
        if (s.contains(ss)) {
            println("Bad")
            return
        }
    }
    println("Good")
}