import java.util.*; public class Main { public static void main(String[] args) { // 標準入力を受け取る Scanner sc = new Scanner(System.in); Long n = sc.nextLong(); String result = ""; // 変換ループ for(long l = 1; l <= n; l++) { if(l % 15 == 0) { result = result + "FizzBuzz"; }else if(l % 3 == 0) { result = result + "Fizz"; }else if(l % 5 == 0) { result = result + "Buzz"; }else { result = result + l; } } String[] s = result.split("z",0); System.out.println(s.length + 1); } }