pr=[2,3,5,7,11,13] sy=[4,6,8,9,10,12];ans=0 k=int(input()) for i in pr: for j in sy: if j==k/i: ans+=1 print(ans/36)