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