N = int(input())
l = []
for i in range(25):
    for j in range(25):
        l.append(i * 4 + j * 7)
ans = 'No'
if N in l:
    ans = 'Yes'
print(ans)

b4ed5c23aa21fab7bc3aff7d33f44218c641ede4
<mask token>

<mask token>
for i in range(25):
    for j in range(25):
        l.append(i * 4 + j * 7)
<mask token>
if N in l:
    ans = 'Yes'
print(ans)

N = int(input())
l = []
for i in range(25):
    for j in range(25):
        l.append(i * 4 + j * 7)
ans = 'No'
if N in l:
    ans = 'Yes'
print(ans)
