k=int(input()) prm=[2,3,5,7,11,13] cmpstn=[4,6,8,9,10,12] n=0 for i in prm: for j in cmpstn: if i*j==k: n+=1 break print(n/36)