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