def fizzbuzz(N:list): _ = [] for n in N: np3 = n % 3 == 0 np5 = n % 5 == 0 if np3 or np5: s = "" if np3: s+="Fizz" if np5: s+="Buzz" else: s = str(n) _.append(s) return _ N = [int(x) for x in input().split()] fb = fizzbuzz(N) my_length = sum(map(len,fb)) print(my_length)