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