def FizzBuzzStr(N): c='' for i in range(1,N+1): if i%3==0 and i%5==0 :a='FizzBuzz' elif i%3==0:a='Fizz' elif i%5==0:a='Buzz' else:a=str(i) c+=a return c.count('z') N=int(input()) print(FizzBuzzStr(N))