import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} int i=0; int i=0; i 0 n+1>i n+1 n 1 i i=i+4 i=i+4 i i+4 i 4 {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			} int j=0; int j=0; j 0 n+1>j n+1 n 1 j j=j+7 j=j+7 j j+7 j 7 {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			} {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			} if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				} i+j==n i+j i j n {
					System.out.println("Yes");
					System.exit(0);
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		for(int i=0;n+1>i;i=i+4) {
			for(int j=0;n+1>j;j=j+7) {
				if(i+j==n) {
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}
}