def check(n):

    if n == 0:

        return True

    if 0 > n:

        return False

    return any([check(n - 4), check(n - 7)])





def main():

    if check(int(eval(input()))) is True:

        print('Yes')

    else:

        print('No')





main()

def main():

    N = int(eval(input()))

    flg = False

    for n in range(N // 7 + 1):

        if (N - 7 * n) % 4 == 0:

            flg = True

            break

    if flg is True:

        print('Yes')

    else:

        print('No')





main()

def check(n):
    if n == 0:
        return True
    if 0 > n:
        return False
    return any([check(n - 4), check(n - 7)])


def main():
    if check(int(eval(input()))) is True:
        print("Yes")
    else:
        print("No")


main()

def main():
    N = int(eval(input()))
    flg = False
    for n in range(N // 7 + 1):
        if (N - 7 * n) % 4 == 0:
            flg = True
            break
    if flg is True:
        print("Yes")
    else:
        print("No")


main()

-def check(n): -    if n == 0: -        return True -    if 0 > n: -        return False -    return any([check(n - 4), check(n - 7)]) - - -    if check(int(eval(input()))) is True: +    N = int(eval(input())) +    flg = False +    for n in range(N // 7 + 1): +        if (N - 7 * n) % 4 == 0: +            flg = True +            break +    if flg is True: