from itertools import product as p print([i*j for i, j in p([2,3,5,7,11,13],[4,6,8,9,10,12])].count(int(input()))/36)