import java.util.*;
class Main{
	static Scanner scan = new Scanner(System.in);
	static void crackers(){
		int n = scan.nextInt(), k = scan.nextInt();
		int m;
		if(n%k==0)
			m = 0;
		else
			m = 1;
		System.out.println(m);
	}
	static void buy(){
		int n = scan.nextInt();
		for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
	public static void main(String[] argv){
		//crackers();
		buy();
	}
} import java.util.*; util.* java class Main{
	static Scanner scan = new Scanner(System.in);
	static void crackers(){
		int n = scan.nextInt(), k = scan.nextInt();
		int m;
		if(n%k==0)
			m = 0;
		else
			m = 1;
		System.out.println(m);
	}
	static void buy(){
		int n = scan.nextInt();
		for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
	public static void main(String[] argv){
		//crackers();
		buy();
	}
} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) static void crackers(){
		int n = scan.nextInt(), k = scan.nextInt();
		int m;
		if(n%k==0)
			m = 0;
		else
			m = 1;
		System.out.println(m);
	} crackers {
		int n = scan.nextInt(), k = scan.nextInt();
		int m;
		if(n%k==0)
			m = 0;
		else
			m = 1;
		System.out.println(m);
	} int n = scan.nextInt() n scan.nextInt() scan.nextInt scan k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int m; m if(n%k==0)
			m = 0;
		else
			m = 1; n%k==0 n%k n k 0 m = 0 m 0 m = 1 m 1 System.out.println(m) System.out.println System.out System System.out m static void buy(){
		int n = scan.nextInt();
		for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	} buy {
		int n = scan.nextInt();
		for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	} int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		} int i=0; int i=0; i 0 i<=n/4 i n/4 n 4 i++ i++ i {
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		} {
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		} for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			} int j=0; int j=0; j 0 j<=n/7 j n/7 n 7 j++ j++ j {
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			} {
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			} if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				} 4*i + 7*j == n 4*i + 7*j 4*i 4 i 7*j 7 j n {
					System.out.println("Yes");
					return;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" public static void main(String[] argv){
		//crackers();
		buy();
	} main {
		//crackers();
		buy();
	} buy() buy String[] argv argv
import java.util.*;
class Main{
	static Scanner scan = new Scanner(System.in);
	static void crackers(){
		int n = scan.nextInt(), k = scan.nextInt();
		int m;
		if(n%k==0)
			m = 0;
		else
			m = 1;
		System.out.println(m);
	}
	static void buy(){
		int n = scan.nextInt();
		for(int i=0;i<=n/4;i++){
			for(int j=0;j<=n/7;j++){
				if(4*i + 7*j == n){
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
	public static void main(String[] argv){
		//crackers();
		buy();
	}
}