p=[2,3,5,7,11,13] c=[4,6,8,9,10,12] k=int(input()) a=0 for i in p: if k%i==0 and c.count(k//i): a+=1 print(a/36)