import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int max = a/4+2;
        int flag = 0;
        int total = 0;

      
      for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      }
		if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int max = a/4+2;
        int flag = 0;
        int total = 0;

      
      for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      }
		if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int max = a/4+2;
        int flag = 0;
        int total = 0;

      
      for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      }
		if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int max = a/4+2;
        int flag = 0;
        int total = 0;

      
      for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      }
		if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int max = a/4+2; max a/4+2 a/4 a 4 2 int flag = 0; flag 0 int total = 0; total 0 for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      } int i = 0; int i = 0; i 0 i<max i max i++ i++ i {
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      } {
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      } for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       } int j =0; int j =0; j 0 j<max j max j++ j++ j {
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       } {
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       } total = i*4+j*7 total i*4+j*7 i*4 i 4 j*7 j 7 if(total==a){flag = 1;break;} total==a total a {flag = 1;break;} flag = 1 flag 1 break; if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        } flag==1 flag 1 {
          System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
          System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args
import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int max = a/4+2;
        int flag = 0;
        int total = 0;

      
      for(int i = 0;i<max;i++){
       for(int j =0;j<max;j++){
         total = i*4+j*7;
         if(total==a){flag = 1;break;}
       }
      }
		if(flag==1){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
}