def inp_i(): return list(map(int, input().split()))



N=int(eval(input()))

ans=0

for i in range(N):

    for n in range(N):

        if (4*i)+(7*n)==N:

            ans += 1

if ans != 0:

    print('Yes')

else:

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



for i in range(n):

  for j in range(n):

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

      print('Yes')

      exit()

print('No')
def inp_i():
    return list(map(int, input().split()))


N = int(eval(input()))
ans = 0
for i in range(N):
    for n in range(N):
        if (4 * i) + (7 * n) == N:
            ans += 1
if ans != 0:
    print("Yes")
else:
    print("No")

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

-def inp_i(): -    return list(map(int, input().split())) - - -N = int(eval(input())) -ans = 0 -for i in range(N): -    for n in range(N): -        if (4 * i) + (7 * n) == N: -            ans += 1 -if ans != 0: -    print("Yes") -else: -    print("No") +n = int(eval(input())) +for i in range(n): +    for j in range(n): +        if i * 4 + j * 7 == n: +            print("Yes") +            exit() +print("No")