



import collections





def solve():



    N = int(eval(input()))



    def GetDivider(num):

        cnt = 0

        for i in range(1, num+1):

            if num % i == 0:

                cnt += 1



        return cnt



    ans = 0



    for i in range(1, N+1):

        if GetDivider(i) == 8:

            if i % 2 != 0:

                ans += 1



    print(ans)





if __name__ == "__main__":

    solve()

N = int(eval(input()))





def GetDivider(num):

    cnt = 0

    for i in range(1, num+1):

        if num % i == 0:

            cnt += 1

    return cnt





ans = 0

for i in range(1, N+1):

    if GetDivider(i) == 8:

        if i % 2 != 0:

            ans += 1

print(ans)

import collections


def solve():
    N = int(eval(input()))

    def GetDivider(num):
        cnt = 0
        for i in range(1, num + 1):
            if num % i == 0:
                cnt += 1
        return cnt

    ans = 0
    for i in range(1, N + 1):
        if GetDivider(i) == 8:
            if i % 2 != 0:
                ans += 1
    print(ans)


if __name__ == "__main__":
    solve()

N = int(eval(input()))


def GetDivider(num):
    cnt = 0
    for i in range(1, num + 1):
        if num % i == 0:
            cnt += 1
    return cnt


ans = 0
for i in range(1, N + 1):
    if GetDivider(i) == 8:
        if i % 2 != 0:
            ans += 1
print(ans)

-import collections +N = int(eval(input())) -def solve(): -    N = int(eval(input())) - -    def GetDivider(num): -        cnt = 0 -        for i in range(1, num + 1): -            if num % i == 0: -                cnt += 1 -        return cnt - -    ans = 0 -    for i in range(1, N + 1): -        if GetDivider(i) == 8: -            if i % 2 != 0: -                ans += 1 -    print(ans) +def GetDivider(num): +    cnt = 0 +    for i in range(1, num + 1): +        if num % i == 0: +            cnt += 1 +    return cnt -if __name__ == "__main__": -    solve() +ans = 0 +for i in range(1, N + 1): +    if GetDivider(i) == 8: +        if i % 2 != 0: +            ans += 1 +print(ans)