N = int(eval(input()))

for i in range(101):

    if N - 7 * i < 0:

        break

    if (N - 7 * i) % 4 == 0:

        print('Yes')

        exit()

print('No')
if int(eval(input())) in [1, 2, 3, 5, 6, 9, 10, 13, 17]:

    print('No')

else:

    print('Yes')
N = int(eval(input()))
for i in range(101):
    if N - 7 * i < 0:
        break
    if (N - 7 * i) % 4 == 0:
        print("Yes")
        exit()
print("No")

if int(eval(input())) in [1, 2, 3, 5, 6, 9, 10, 13, 17]:
    print("No")
else:
    print("Yes")

-N = int(eval(input())) -for i in range(101): -    if N - 7 * i < 0: -        break -    if (N - 7 * i) % 4 == 0: -        print("Yes") -        exit() -print("No") +if int(eval(input())) in [1, 2, 3, 5, 6, 9, 10, 13, 17]: +    print("No") +else: +    print("Yes")