fun main(args: Array<String>) {
    val s = readLine()!!
    var flag = true
    for ((i, j) in (1..3).withIndex()) {
        if (s[i] == s[j]) flag = false
    }
    print(if(flag) "Good" else "Bad")
}