from itertools import * a=[] for x,y in product([2,3,5,7,13,11],[4,6,8,9,10,12]):a+=[x*y] print(a.count(int(input()))/36)