Imports System.Collections.Generic
Imports System.Console

Module Program
    Const price_c As Integer = 4
    Const price_d As Integer = 7

    Sub Main()
        Dim N As Integer = CInt(NextString())
        Dim flg As Boolean

        For c As Integer = 0 To N \ price_c
            For d As Integer = 0 To N \ price_d
                If c * price_c + d * price_d = N Then flg = True
            Next
        Next

        WriteLine(New String() {"No", "Yes"}(B2I(flg)))
    End Sub


    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
