"""All_Primes"""
def main():
    """it will you how many prime numbers"""
    numbers = int(input())
    count = 0
    for num in range(1, numbers+1):
        if num > 1:
            for i in range(2, num):
                if (num % i) == 0:
                    break
            else:
                count += 1
    print(count)
main()

17d768262c1296f22a65c5b9df426c0f5984581d
<mask token>

<mask token>


def main():
    """it will you how many prime numbers"""
    numbers = int(input())
    count = 0
    for num in range(1, numbers + 1):
        if num > 1:
            for i in range(2, num):
                if num % i == 0:
                    break
            else:
                count += 1
    print(count)


<mask token>

<mask token>


def main():
    """it will you how many prime numbers"""
    numbers = int(input())
    count = 0
    for num in range(1, numbers + 1):
        if num > 1:
            for i in range(2, num):
                if num % i == 0:
                    break
            else:
                count += 1
    print(count)


main()

"""All_Primes"""
def main():
    """it will you how many prime numbers"""
    numbers = int(input())
    count = 0
    for num in range(1, numbers+1):
        if num > 1:
            for i in range(2, num):
                if (num % i) == 0:
                    break
            else:
                count += 1
    print(count)
main()
