import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean[] f = new boolean[N+1]; f new boolean[N+1] N+1 N 1 f[0] = true f[0] f 0 true for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true; int i = 0; int i = 0; i 0 i < N i N i++ i++ i if (f[i] && i + 4 <= N)
                f[i + 4] = true; if (f[i] && i + 4 <= N)
                f[i + 4] = true; f[i] && i + 4 <= N f[i] f i i + 4 <= N i + 4 i 4 N f[i + 4] = true f[i + 4] f i + 4 i 4 true for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true; int i = 0; int i = 0; i 0 i < N i N i++ i++ i if (f[i] && i + 7 <= N)
                f[i + 7] = true; if (f[i] && i + 7 <= N)
                f[i + 7] = true; f[i] && i + 7 <= N f[i] f i i + 7 <= N i + 7 i 7 N f[i + 7] = true f[i + 7] f i + 7 i 7 true if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No"); f[N] f N System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(); //Nドル
        boolean[] f = new boolean[N+1];
        f[0] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 4 <= N)
                f[i + 4] = true;
        for (int i = 0; i < N; i++)
            if (f[i] && i + 7 <= N)
                f[i + 7] = true;
        if(f[N])
            System.out.println("Yes");
        else
            System.out.println("No");
        sc.close();
    }
}
