# describe Abc131A do
#   context 'test' do
#     it 'sample' do
#       expect(Abc131A.calc('3776')).to be_falsey
#       expect(Abc131A.calc('8080')).to be_truthy
#       expect(Abc131A.calc('1333')).to be_falsey
#       expect(Abc131A.calc('0024')).to be_falsey
#     end
#   end
# end

class Abc131A
  def self.input()
    password_string = STDIN.gets
  end

  def self.output(result)
    puts (result ? "Good": "Bad")
  end

  def self.calc(password_string)
    !password_string.split(//).map.each_cons(2).map{ |a, b|
      a == b
    }.any?
  end

  def self.main()
    password_string = input()
    result = calc(password_string)
    output(result)
  end
end

if __FILE__ == $0
  Abc131A.main
  exit
end