n = int(eval(input()))

l=[]

count=0

for h in range(n):

    for i in range(h+1):

        if (h+1)%(i+1)==0 and (h+1)%2!=0:

            l.append(h+1)

            if len(l)==8:

                count+=1

    if len(l)!=8:

        l.clear()

print(count)  
n = int(eval(input()))

cnt=0

ans=0

for i in range(1,n+1,2):

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

        if i%j==0:

            cnt+=1

    if cnt==8:

        ans+=1

        cnt=0

    else:

        cnt=0

print(ans)
n = int(eval(input()))
l = []
count = 0
for h in range(n):
    for i in range(h + 1):
        if (h + 1) % (i + 1) == 0 and (h + 1) % 2 != 0:
            l.append(h + 1)
            if len(l) == 8:
                count += 1
    if len(l) != 8:
        l.clear()
print(count)

n = int(eval(input()))
cnt = 0
ans = 0
for i in range(1, n + 1, 2):
    for j in range(1, i + 1):
        if i % j == 0:
            cnt += 1
    if cnt == 8:
        ans += 1
        cnt = 0
    else:
        cnt = 0
print(ans)

-l = [] -count = 0 -for h in range(n): -    for i in range(h + 1): -        if (h + 1) % (i + 1) == 0 and (h + 1) % 2 != 0: -            l.append(h + 1) -            if len(l) == 8: -                count += 1 -    if len(l) != 8: -        l.clear() -print(count) +cnt = 0 +ans = 0 +for i in range(1, n + 1, 2): +    for j in range(1, i + 1): +        if i % j == 0: +            cnt += 1 +    if cnt == 8: +        ans += 1 +        cnt = 0 +    else: +        cnt = 0 +print(ans)