

ans = float("inf")





def solve():



    N = int(eval(input()))



    for cake in range(100):

        for donuts in range(100):

            if cake*4 + donuts*7 == N:

                print("Yes")

                exit()



    print("No")





if __name__ == "__main__":

    solve()

N = int(eval(input()))



for i in range(100):

    for j in range(100):

        if i * 4+j*7 == N:

            print("Yes")

            exit()



print("No")

ans = float("inf")


def solve():
    N = int(eval(input()))
    for cake in range(100):
        for donuts in range(100):
            if cake * 4 + donuts * 7 == N:
                print("Yes")
                exit()
    print("No")


if __name__ == "__main__":
    solve()

N = int(eval(input()))
for i in range(100):
    for j in range(100):
        if i * 4 + j * 7 == N:
            print("Yes")
            exit()
print("No")

-ans = float("inf") - - -def solve(): -    N = int(eval(input())) -    for cake in range(100): -        for donuts in range(100): -            if cake * 4 + donuts * 7 == N: -                print("Yes") -                exit() -    print("No") - - -if __name__ == "__main__": -    solve() +N = int(eval(input())) +for i in range(100): +    for j in range(100): +        if i * 4 + j * 7 == N: +            print("Yes") +            exit() +print("No")