
    fun main(args: Array<String>) {
        var result: String = "Good"
        val n = readNext()
        if(n[0] == n[1] ||
                n[1] == n[2] ||
                n[2] == n[3]) {
            result = "Bad"
        }
        println(result)
    }


    fun readNext(): String {
        return readLine()!!
    }