import java.util.*;
import static java.lang.System.*;

public class Main {
 	public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    }
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
 	public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    }
} Main public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    } main {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean isJust = false; isJust false for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        } int i = 0; int i = 0; i 0 i <= 25 i 25 i++ i++ i {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        } {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        } for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            } int j = 0; int j = 0; j 0 j <= 14 j 14 j++ j++ j {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            } {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            } int total = i * 4 + j * 7; total i * 4 + j * 7 i * 4 i 4 j * 7 j 7 if(total == N) isJust = true; total == N total N isJust = true isJust true if(isJust)   out.println("Yes"); isJust out.println("Yes") out.println out "Yes" if(! isJust) out.println("No"); ! isJust isJust out.println("No") out.println out "No" String[] args args public class Main {
 	public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    }
} public class Main {
 	public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    }
} Main
import java.util.*;
import static java.lang.System.*;

public class Main {
 	public static void main(String[] args) {
     	Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	boolean isJust = false;
		for(int i = 0; i <= 25; i++) {
        	for(int j = 0; j <= 14; j++) {
            	int total = i * 4 + j * 7;
              	if(total == N) isJust = true;
            }
        }
      	if(isJust)   out.println("Yes");
      	if(! isJust) out.println("No");
    }
}