Imports System.Collections.Generic
Imports System.Console

Module Program
    Sub Main()
        Dim N As Integer = CInt(NextString())
        Dim ans As Integer

        For i As Integer = 1 To N Step 2
            ans += B2I(Calc(i) = 8)
        Next
        WriteLine(ans)
    End Sub

    Function Calc(n As Integer) As Integer
        Dim result As Integer
        Dim i As Integer = 1
        Do While i ^ 2 < n
            If n Mod i = 0 Then result += 2
            i += 1
        Loop
        If i ^ 2 = n Then result += 1
        Return result
    End Function

    Function B2I(ok As Boolean) As Integer
        If ok Then Return 1
        Return 0
    End Function

    Function NextString() As String
        Dim result As New List(Of Char)
        Do
            Dim tmp As Integer = Read()
            If tmp < 0 Then Exit Do
            Dim nextChar As Char = Chr(tmp)

            If Not Char.IsWhiteSpace(nextChar) Then
                result.Add(nextChar)
            ElseIf nextChar <> vbCr Then
                Exit Do
            End If
        Loop
        Return New String(result.ToArray())
    End Function

End Module
