
import java.util.*

fun main(args: Array<String>) {
    val argList = Scanner(System.`in`)


    val s = argList.next()
    val executor = Security()
    executor.execute(s)

}
class Security {
    fun execute(code: String) {

        if (code[0] == code[1] || code[1] == code[2] || code[2] == code[3]) {
            println("Bad")
            return
        }
        println("Good")
    }
}
