def fz(n): if n % 15 == 0: return "FizzBuzz" elif n % 3==0: return "Fizz" elif n % 5==0: return "Buzz" else: return str(n) a = list(map(int,input().split())) sum ="" for n in a: sum += fz(n) print(len(sum))