K = int(input()) P = [2,3,5,7,11,13] G = [4,6,8,9,10,12] D = {i:0 for i in range(201)} for p in P: for g in G: D[p*g] += 1 print(D[K]/36)