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