import java.util.Scanner;
 
class Main {
	int n;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
	}
	void solve(){
		boolean ans = false;
		flag:for(int i=0;i*4<=n;i++){
			for(int j=0;j*7<=n;j++){
				if(i*4+j*7==n){
					ans = true;
					break flag;
				}
			}
		}
		if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	int n;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
	}
	void solve(){
		boolean ans = false;
		flag:for(int i=0;i*4<=n;i++){
			for(int j=0;j*7<=n;j++){
				if(i*4+j*7==n){
					ans = true;
					break flag;
				}
			}
		}
		if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main int n; n public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main m = new Main(sc); m new Main(sc) m.solve() m.solve m sc.close() sc.close sc String[] args args Main(Scanner sc){
		n = sc.nextInt();
	} Main {
		n = sc.nextInt();
	} n = sc.nextInt() n sc.nextInt() sc.nextInt sc Scanner sc sc void solve(){
		boolean ans = false;
		flag:for(int i=0;i*4<=n;i++){
			for(int j=0;j*7<=n;j++){
				if(i*4+j*7==n){
					ans = true;
					break flag;
				}
			}
		}
		if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} solve {
		boolean ans = false;
		flag:for(int i=0;i*4<=n;i++){
			for(int j=0;j*7<=n;j++){
				if(i*4+j*7==n){
					ans = true;
					break flag;
				}
			}
		}
		if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} boolean ans = false; ans false if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} ans {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No"
import java.util.Scanner;
 
class Main {
	int n;
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Main m = new Main(sc);
		m.solve();
		sc.close();
	}
	Main(Scanner sc){
		n = sc.nextInt();
	}
	void solve(){
		boolean ans = false;
		flag:for(int i=0;i*4<=n;i++){
			for(int j=0;j*7<=n;j++){
				if(i*4+j*7==n){
					ans = true;
					break flag;
				}
			}
		}
		if(ans){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}