class String
    def comp
        sz = self.size
        res = self[0]
        (sz-1).times do |i|
            res += self[i+1] if self[i+1] != res[-1]
        end
        return res
    end
end
 
s = gets.chomp

puts s.comp.size == 4 ? "Good" : "Bad"