lst=list(map(int,input().split())) lst_1="" for i in lst: if i % 15==0: lst_1 +="FizzBuzz" elif i % 3 ==0 and i % 5 !=0: lst_1 +="Fizz" elif i % 5 ==0 and i % 3 !=0: lst_1 +="Buzz" else: lst_1 +=str(i) print(len(lst_1))