import sys

n=int(eval(input()))

for i in range(26):

  for j in range(16):

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

      print("Yes")

      sys.exit()

print("No")
n=int(eval(input()))

for i in range(26):

  for j in range(24):

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

      print("Yes")

      exit()

print("No")
import sys

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

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

-import sys - -    for j in range(16): +    for j in range(24): -            sys.exit() +            exit()