def fizzbuzz(i) if i % 15 == 0 "FizzBuzz" elsif i % 5 == 0 "Buzz" elsif i % 3 == 0 "Fizz" else i end end p fizzbuzz(gets.delete("\n").to_i)