def main(): K = int(input()) primes = (2, 3, 5, 7, 11, 13) non_primes = (4, 6, 8, 9, 10, 12) ctr = 0 for prime in primes: for non_prime in non_primes: if prime * non_prime == K: ctr += 1 print(ctr / 36) if __name__ == "__main__": main()