n = int(input()) fizz_buzz_string="" for i in range(1,n+1): if i%3==0 and i%5==0: fizz_buzz_string = fizz_buzz_string + "FizzBuzz" elif i%3 == 0: fizz_buzz_string = fizz_buzz_string + "Fizz" elif i%5 == 0: fizz_buzz_string = fizz_buzz_string + "Buzz" else: fizz_buzz_string = fizz_buzz_string + str(i) print(fizz_buzz_string.count("z"))