import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),f=0,i,j;
		scan.close();
		for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		}
		if(f==0) System.out.print("No");
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),f=0,i,j;
		scan.close();
		for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		}
		if(f==0) System.out.print("No");
	}
} Main public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),f=0,i,j;
		scan.close();
		for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		}
		if(f==0) System.out.print("No");
	} main {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),f=0,i,j;
		scan.close();
		for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		}
		if(f==0) System.out.print("No");
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt() n scan.nextInt() scan.nextInt scan f=0 f 0 i i j; j scan.close() scan.close scan for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		} i=0; i=0 i 0 i<=n i n i++ i++ i {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		} {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		} for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			} j=0; j=0 j 0 j<=n j n j++ j++ j {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			} {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			} if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				} 4*i+7*j==n 4*i+7*j 4*i 4 i 7*j 7 j n {
					if(f==0) System.out.print("Yes");
					f=1;
				} if(f==0) System.out.print("Yes"); f==0 f 0 System.out.print("Yes") System.out.print System.out System System.out "Yes" f=1 f 1 if(f==0) System.out.print("No"); f==0 f 0 System.out.print("No") System.out.print System.out System System.out "No" String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt(),f=0,i,j;
		scan.close();
		for(i=0;i<=n;i++) {
			for(j=0;j<=n;j++) {
				if(4*i+7*j==n) {
					if(f==0) System.out.print("Yes");
					f=1;
				}
			}
		}
		if(f==0) System.out.print("No");
	}
}