Imports System


Module Program
    Dim a As Integer
    Sub Main(args As String())
        a = Console.ReadLine

        If -40 <= a And a <= 40 Then
            If 30 <= a Then
                Console.WriteLine("Yes")
            ElseIf a <= 29 Then
                Console.WriteLine("No")

            End If
        End If

    End Sub
End Module