import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    }
    
}
 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 cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    }
    
} Main public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    } main {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int cnt = N / 4; cnt N / 4 N 4 int cnt_j = N / 3; cnt_j N / 3 N 3 int ans = 0; ans 0 for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		} int i=0; int i=0; i 0 i < cnt + 1 i cnt + 1 cnt 1 i++ i++ i {
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		} {
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		} for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			} int j=0; int j=0; j 0 j < cnt_j j cnt_j j++ j++ j {
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			} {
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			} ans = i * 4 + j * 7 ans i * 4 + j * 7 i * 4 i 4 j * 7 j 7 if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				} ans == N ans N {
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc return; System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc return ; String[] args args public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    }
    
} public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    }
    
} 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 cnt = N / 4;
		int cnt_j = N / 3;
		int ans = 0;
		for(int i=0;i < cnt + 1;i++){
			for(int j=0;j < cnt_j;j++){
				ans = i * 4 + j * 7;
				if(ans == N){
			   		System.out.println("Yes");
			   		sc.close();
			   		return;
				}
			}
		}
		
   		System.out.println("No");
		
   		sc.close();
        return ;

    }
    
}

