import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    def main():

        n=int(eval(input()))

        for cake in range(26):

            for donut in range(15):

                if cake*4+donut*7==n:

                    return 'Yes'

        return 'No'

    print((main()))

resolve()
import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    n=int(eval(input()))

    l=[1,2,3,5,6,9,10,13,17]

    if n in l:

        print('No')

    else:

        print('Yes')

resolve()
import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    def main():
        n = int(eval(input()))
        for cake in range(26):
            for donut in range(15):
                if cake * 4 + donut * 7 == n:
                    return "Yes"
        return "No"

    print((main()))


resolve()

import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    n = int(eval(input()))
    l = [1, 2, 3, 5, 6, 9, 10, 13, 17]
    if n in l:
        print("No")
    else:
        print("Yes")


resolve()

-    def main(): -        n = int(eval(input())) -        for cake in range(26): -            for donut in range(15): -                if cake * 4 + donut * 7 == n: -                    return "Yes" -        return "No" - -    print((main())) +    n = int(eval(input())) +    l = [1, 2, 3, 5, 6, 9, 10, 13, 17] +    if n in l: +        print("No") +    else: +        print("Yes")