import java.util.*;
public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    }  
}   import java.util.*; util.* java public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    }  
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    } main {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String judge = "No"; judge "No" for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      } int i=0; int i=0; i 0 i<26 i 26 i++ i++ i {
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      } {
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      } for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        } int j=0; int j=0; j 0 j<15 j 15 j++ j++ j {
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        } {
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        } if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          } i*4 + j*7 == N i*4 + j*7 i*4 i 4 j*7 j 7 N {
            judge = "Yes";
          } judge = "Yes" judge "Yes" if(i*4 + j*7 > N){
            break;
          } i*4 + j*7 > N i*4 + j*7 i*4 i 4 j*7 j 7 N {
            break;
          } break; System.out.println(judge) System.out.println System.out System System.out judge String[] args args public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    }  
} public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    }  
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      String judge = "No";
      
      for(int i=0; i<26; i++){
	    for(int j=0; j<15; j++){
          if(i*4 + j*7 == N){
            judge = "Yes";
          } else if(i*4 + j*7 > N){
            break;
          }
        }
      }  
      
      System.out.println(judge);
    }  
}  