before_s = nil
gets.chomp.split('').each do |s|
    if before_s.nil?
        before_s = s
        next
    end
    
    if s == before_s
        puts 'Bad'
        exit
    else
        before_s = s
    end
end

puts 'Good'
