K=int(input()) S=[2,3,5,7,11,13] G=[4,6,8,9,10,12] count=0 for i in S: for j in G: if K==(i*j): count+=1 print(count/36)