str = gets.chomp! abort "EOF" unless !gets abort "Format error" unless str=~/^[0-3]+$/ e = str.to_i(4) puts e%15 == 0 ? "FizzBuzz" : (e%5 == 0 ? "Buzz" : (e%3 == 0 ? "Fizz" : str))