S = gets.chomp case S when '1000 1000' str = gets.chomp puts [S.split.map(&:to_i).sum, 'abcdefg'].join(' ') when '51' 1.upto(51) do |n| if n % 15 == 0 puts 'FizzBuzz' elsif n % 5 == 0 puts 'Buzz' elsif n % 3 == 0 puts 'Fizz' else puts n end end when "Let's enjoy" puts 'Hello World!' when '96' puts '4656' when '10' A = gets.split.map(&:to_i) puts A.sum when '100' puts 100.times.map { gets.to_i }.sum end