s = gets.chomp n = s.reverse d = 0 n.length().times {|i| d += 4 ** i * n[i].to_i } if d % 15 == 0 puts "FizzBuzz" elsif d % 5 == 0 puts "Buzz" elsif d % 3 == 0 puts "Fizz" else puts n end