
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	}
} Main public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	} main {
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	} Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		} N%7==0 || N%4==0 N%7==0 N%7 N 7 0 N%4==0 N%4 N 4 0 {
			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 int x = N / 7; x N / 7 N 7 int y; y for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		} int i=0; int i=0; i 0 i<=x i x i++ i++ i {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		} {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		} y = N - 7*i y N - 7*i N 7*i 7 i if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			} y%4==0 y%4 y 4 0 {
				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" in.close() in.close in String[] args args public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	}
} Main

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		
		if(N%7==0 || N%4==0) {
			System.out.println("Yes");
			System.exit(0);
		}
		int x = N / 7;
		int y;
		for(int i=0; i<=x; i++) {
			y = N - 7*i;
			if(y%4==0) {
				System.out.println("Yes");
				System.exit(0);
			}
		}
		System.out.println("No");
		in.close();
	}
}