fun main(args: Array<String>) {
    var ans = "Good"
    val input = readLine()!!.toCharArray()

    for ( n in 0 until input.size - 1){
        if (input[n] == input[n + 1]) {
            ans = "Bad"
            break
        }
    }
    print(ans)
}