N=int(eval(input()))

if N in [1,2,3,5,6,9,10,13,17]:

  print("No")

else:

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

for i in range(0,4):

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

    print("Yes")

    break

else:

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

N = int(eval(input()))
for i in range(0, 4):
    if N - 7 * i >= 0 and (N - 7 * i) % 4 == 0:
        print("Yes")
        break
else:
    print("No")

-if N in [1, 2, 3, 5, 6, 9, 10, 13, 17]: +for i in range(0, 4): +    if N - 7 * i >= 0 and (N - 7 * i) % 4 == 0: +        print("Yes") +        break +else: -else: -    print("Yes")