import sys

n = int(eval(input())) 

i = 0 

j = 0

while(i < 100):

    j = 0

    while(j < 100):

        if 7* i + 4 * j == n:

            print("Yes")

            sys.exit()

        j+= 1

        

    i+= 1



print("No")

import sys

n = int(eval(input())) 

for i in range(100):

    for j in range(100):

        if 7* i + 4 * j == n:

            print("Yes")

            sys.exit()



print("No")

import sys

n = int(eval(input()))
i = 0
j = 0
while i < 100:
    j = 0
    while j < 100:
        if 7 * i + 4 * j == n:
            print("Yes")
            sys.exit()
        j += 1
    i += 1
print("No")

import sys

n = int(eval(input()))
for i in range(100):
    for j in range(100):
        if 7 * i + 4 * j == n:
            print("Yes")
            sys.exit()
print("No")

-i = 0 -j = 0 -while i < 100: -    j = 0 -    while j < 100: +for i in range(100): +    for j in range(100): -        j += 1 -    i += 1