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