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