import java.util.Scanner; import java.lang.Math; import java.lang.StringBuilder; import java.util.regex.Pattern; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); double c = 0; int[] a = {2,3,5,7,11,13}; int[] b = {4,6,8,9,10,12}; for(int i=0;i<6;i++){ for(int j=0;j<6;j++){ if(a[i]*b[j]==k){ c++; } } } System.out.println(c/36); } }