s = 0 k = [0,0] n = gets.chomp n.chars.each_with_index do |c, i| c = c.to_i s += c k[i%2] += c end t = "" t << "Fizz" if s % 3 == 0 t << "Buzz" if (k[0] - k[1]) % 5 == 0 puts (t == "" ? n : t)