import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	}
} 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();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int f=N/4; f N/4 N 4 int s=0; s 0 int cul = 0; cul 0 while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		} f>-1 f -1 1 {
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		} cul = f*4+s*7 cul f*4+s*7 f*4 f 4 s*7 s 7 if(cul == N)break; cul == N cul N break; if(cul > N) f--;
			else if(cul < N) s++; cul > N cul N f-- f if(cul < N) s++; cul < N cul N s++ s System.out.println(cul==N?"Yes":"No") System.out.println System.out System System.out cul==N?"Yes":"No" cul==N cul N "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt();
		int f=N/4;
		int s=0;
		int cul = 0;
		while(f>-1){
			cul = f*4+s*7;
			if(cul == N)break;
			if(cul > N) f--;
			else if(cul < N) s++;
		}
		System.out.println(cul==N?"Yes":"No");
	}
}
