n = int(eval(input()))



count = 0



for i in range(26):

    for j in range(15):

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

            count += 1

            break

        else:

            pass



if count == 0:

    print("No")

else:

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



f = False



for i in range(26):

    for j in range(15):

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

            f = True

            break

        else:

            pass



if f:

    print("Yes")

else:

    print("No")
n = int(eval(input()))
count = 0
for i in range(26):
    for j in range(15):
        if 4 * i + 7 * j == n:
            count += 1
            break
        else:
            pass
if count == 0:
    print("No")
else:
    print("Yes")

n = int(eval(input()))
f = False
for i in range(26):
    for j in range(15):
        if 4 * i + 7 * j == n:
            f = True
            break
        else:
            pass
if f:
    print("Yes")
else:
    print("No")

-count = 0 +f = False -            count += 1 +            f = True -if count == 0: +if f: +    print("Yes") +else: -else: -    print("Yes")