s = gets.chomp

first = false
before = ""
result = "Good"
s.each_char do |c|
  unless first
    first = true
    before = c
    next
  end
  result = "Bad" if before == c
  before = c
end

puts result