def FizzBuzz(x): if x%15 == 0: return "FizzBuzz" if x%5 == 0: return "Buzz" if x%3 == 0: return "Fizz" return str(x) print(sum([len(FizzBuzz(int(i))) for i in input().split()]))