import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	}
} import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import java.math.BigInteger; BigInteger java.math public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String result = "No"; result "No" for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		} int i = 0; int i = 0; i 0 i <= 100/4 i 100/4 100 4 i++ i++ i {
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		} {
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		} for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    } int j = 0; int j = 0; j 0 j <= 100/7 j 100/7 100 7 j++ j++ j {
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    } {
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    } if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        } n == 4*i + 7*j n 4*i + 7*j 4*i 4 i 7*j 7 j {
		            result = "Yes";
		            System.out.println(result);
		            return;
		        } result = "Yes" result "Yes" System.out.println(result) System.out.println System.out System System.out result return; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	}
} Main
import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int n = sc.nextInt();
		
		// 計算
		String result = "No";
		for(int i = 0; i <= 100/4; i++){
		    for(int j = 0; j <= 100/7; j++){
		        if(n == 4*i + 7*j){
		            result = "Yes";
		            System.out.println(result);
		            return;
		        }
		    }
		}
		
		// 出力
		System.out.println(result);
	}
}
