s = gets.chomp.split("").map(&:to_i)
count = []
s.each_with_index do |v,i|
	if i !=0
		if v == s[i-1]
        	count.push(1)
        else
        	count.push(0)
		end
	end
end
if count.count(1) != 0
	puts "Bad"
else
	puts "Good"
end