N = int(eval(input()))



four = [4*i for i in range(26)]

seven = [7*i for i in range(15)]



exist = False

for f in four:

    for s in seven:

        sm = f+s

        if sm == N:

            exist = True

            

if exist:

    print("Yes")

else:

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

four = [4*i for i in range(26)]

seven = [7*i for i in range(15)]



exist = False

for f in four:

    for s in seven:

        if f+s == N:

            exist = True

            

if exist:

    print("Yes")

else:

    print("No")

        
N = int(eval(input()))
four = [4 * i for i in range(26)]
seven = [7 * i for i in range(15)]
exist = False
for f in four:
    for s in seven:
        sm = f + s
        if sm == N:
            exist = True
if exist:
    print("Yes")
else:
    print("No")

N = int(eval(input()))
four = [4 * i for i in range(26)]
seven = [7 * i for i in range(15)]
exist = False
for f in four:
    for s in seven:
        if f + s == N:
            exist = True
if exist:
    print("Yes")
else:
    print("No")

-        sm = f + s -        if sm == N: +        if f + s == N: