N = input() def Base_n_to_10_15(X,n): out = 0 a = 1 for i in range(1,len(str(X))+1): a = a*n%15 out += (int(X[-i])*a )%15 return out n = Base_n_to_10_15(N,4) print(n) if n%15 == 0: print("FizzBuzz") elif n%3 == 0: print("Fizz") elif n%5 == 0: print("Buzz") else: print(N)