#coding: utf-8 def main(): n4 = int(input()) print(fizzbuzz(four2ten(n4)) if fizzbuzz(four2ten(n4)) else n4) def four2ten(n4): if n4 <= 3: return n4 else: l = list(map(int, str(n4))) a = 0 for i in range(len(l)-1): a += l[i] a *= 4 b = int(l[-1]) return int(a+b) def fizzbuzz(i): if i % 15 ==0: return 'FizzBuzz' elif i % 3 == 0: return 'Fizz' elif i % 5 == 0: return 'Buzz' else: return None if __name__ == '__main__': main()