N = int(eval(input()))

multiple_4 = [x*4 for x in range(101) if x >= 1 and x <= 25]

multiple_7 = [x*7 for x in range(101) if x >= 1 and x <= 14]

multiple_4_7 = [x*4+7 for x in range(101) if x >= 1 and x <= 23]

multiple_7_4 = [x*7+4 for x in range(101) if x >= 1 and x <= 23]

tmp = []

for i in range(10):

  for j in range(10):

    solve = (4*(i+1))+(7*(j+1))

    if solve <= 100:

      tmp.append(solve)

multiple_other = sorted(list(set(tmp)))

if N in multiple_4 or N in multiple_7 or N in multiple_4_7 or N in multiple_7_4 or N in multiple_other:

  print("Yes")

else:

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

tmp = []

for i in range(10):

  for j in range(10):

    solve = (4*(i+1))+(7*(j+1))

    if solve <= 100:

      tmp.append(solve)

multiples = sorted(list(set(tmp)))

if N % 4 == 0 or N % 7 == 0 or N in multiples:

  print("Yes")

else:

  print("No")
N = int(eval(input()))
multiple_4 = [x * 4 for x in range(101) if x >= 1 and x <= 25]
multiple_7 = [x * 7 for x in range(101) if x >= 1 and x <= 14]
multiple_4_7 = [x * 4 + 7 for x in range(101) if x >= 1 and x <= 23]
multiple_7_4 = [x * 7 + 4 for x in range(101) if x >= 1 and x <= 23]
tmp = []
for i in range(10):
    for j in range(10):
        solve = (4 * (i + 1)) + (7 * (j + 1))
        if solve <= 100:
            tmp.append(solve)
multiple_other = sorted(list(set(tmp)))
if (
    N in multiple_4
    or N in multiple_7
    or N in multiple_4_7
    or N in multiple_7_4
    or N in multiple_other
):
    print("Yes")
else:
    print("No")

N = int(eval(input()))
tmp = []
for i in range(10):
    for j in range(10):
        solve = (4 * (i + 1)) + (7 * (j + 1))
        if solve <= 100:
            tmp.append(solve)
multiples = sorted(list(set(tmp)))
if N % 4 == 0 or N % 7 == 0 or N in multiples:
    print("Yes")
else:
    print("No")

-multiple_4 = [x * 4 for x in range(101) if x >= 1 and x <= 25] -multiple_7 = [x * 7 for x in range(101) if x >= 1 and x <= 14] -multiple_4_7 = [x * 4 + 7 for x in range(101) if x >= 1 and x <= 23] -multiple_7_4 = [x * 7 + 4 for x in range(101) if x >= 1 and x <= 23] -multiple_other = sorted(list(set(tmp))) -if ( -    N in multiple_4 -    or N in multiple_7 -    or N in multiple_4_7 -    or N in multiple_7_4 -    or N in multiple_other -): +multiples = sorted(list(set(tmp))) +if N % 4 == 0 or N % 7 == 0 or N in multiples: