N = int(eval(input()))

result = "No"

for i in range(101):

  for j in range(101):

    total = 4 * i + 7 * j 

    if N == total :

      result = "Yes"

      break

print(result)
N = int(eval(input()))

cMax = round(100 / 4)

dMax = round(100 / 7)

result = "No"

for c in range(cMax):

  for d in range(dMax):

    if 4 * c + 7 * d == N:

      result = "Yes"

      break

print(result)
N = int(eval(input()))
result = "No"
for i in range(101):
    for j in range(101):
        total = 4 * i + 7 * j
        if N == total:
            result = "Yes"
            break
print(result)

N = int(eval(input()))
cMax = round(100 / 4)
dMax = round(100 / 7)
result = "No"
for c in range(cMax):
    for d in range(dMax):
        if 4 * c + 7 * d == N:
            result = "Yes"
            break
print(result)

+cMax = round(100 / 4) +dMax = round(100 / 7) -for i in range(101): -    for j in range(101): -        total = 4 * i + 7 * j -        if N == total: +for c in range(cMax): +    for d in range(dMax): +        if 4 * c + 7 * d == N: