import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean buyflg=false; buyflg false for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    } int a=0; int a=0; a 0 a<=N/7 a N/7 N 7 a++ a++ a {
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    } {
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    } for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      } int b=0; int b=0; b 0 b<=N/4 b N/4 N 4 b++ b++ b {
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      } {
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      } if(a*7+b*4==N){
          buyflg=true;
          break;
        } a*7+b*4==N a*7+b*4 a*7 a 7 b*4 b 4 N {
          buyflg=true;
          break;
        } buyflg=true buyflg true break; if(buyflg==true){
        break;        
      } buyflg==true buyflg true {
        break;        
      } break; String outstr = buyflg==true ? "Yes":"No"; outstr buyflg==true ? "Yes":"No" buyflg==true buyflg true "Yes" "No" System.out.println(outstr) System.out.println System.out System System.out outstr String[] args args public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  }
} public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    boolean buyflg=false;
    
    for(int a=0; a<=N/7; a++){
      
	  for(int b=0; b<=N/4; b++){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
    String outstr = buyflg==true ? "Yes":"No";
    System.out.println(outstr);
  }
}