fun main (args : Array<String>) {
	val s = readLine()
	val S : String = s.toString()
	var list : MutableList<Int> = mutableListOf()
	for (i in S) {
		list.add(i.toInt())
	}
	for (i in 0..2) {
		if (list[i] == list[i + 1]) {
			return println("Bad")
		}
	}
	println("Good")
}