n = int(eval(input()))

money = [4*i + 7*j for i in range(n//4+1) for j in range(n//7+1)]

print(('Yes' if n in money else 'No'))

n=int(eval(input()))

X=[]

for i in range(0,26):

    for j in range(0,15):

        if i*4+j*7<=100:

            X.append(i*4+j*7)

print(('Yes' if n in X else 'No'))

n = int(eval(input()))
money = [4 * i + 7 * j for i in range(n // 4 + 1) for j in range(n // 7 + 1)]
print(("Yes" if n in money else "No"))

n = int(eval(input()))
X = []
for i in range(0, 26):
    for j in range(0, 15):
        if i * 4 + j * 7 <= 100:
            X.append(i * 4 + j * 7)
print(("Yes" if n in X else "No"))

-money = [4 * i + 7 * j for i in range(n // 4 + 1) for j in range(n // 7 + 1)] -print(("Yes" if n in money else "No")) +X = [] +for i in range(0, 26): +    for j in range(0, 15): +        if i * 4 + j * 7 <= 100: +            X.append(i * 4 + j * 7) +print(("Yes" if n in X else "No"))