import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	} main {
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      } tmp % 7 == 0 || tmp % 4 == 0 tmp % 7 == 0 tmp % 7 tmp 7 0 tmp % 4 == 0 tmp % 4 tmp 4 0 {
        System.out.println("Yes");
        return;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(tmp <= 3){
        System.out.println("No");
      return;
      } tmp <= 3 tmp 3 {
        System.out.println("No");
      return;
      } System.out.println("No") System.out.println System.out System System.out "No" return; int fourOnly = tmp; fourOnly tmp while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        } fourOnly > 0 fourOnly 0 {
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        } fourOnly = fourOnly - 4 fourOnly fourOnly - 4 fourOnly 4 if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          } fourOnly % 7 == 0 fourOnly % 7 fourOnly 7 0 {
            System.out.println("Yes");
            return;
          } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; int fourSeven = tmp; fourSeven tmp while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        } fourSeven > 0 fourSeven 0 {
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        } if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          } fourSeven % 4 == 0 fourSeven % 4 fourSeven 4 0 {
            System.out.println("Yes");
            return;
          } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; fourSeven = fourSeven - 7 fourSeven fourSeven - 7 fourSeven 7 System.out.println("No") System.out.println System.out System System.out "No" return; String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String input = sc.next();
		int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
      	
      if(tmp % 7 == 0 || tmp % 4 == 0){
        System.out.println("Yes");
        return;
      }else if(tmp <= 3){
        System.out.println("No");
      return;
      }
      
      int fourOnly = tmp;
      while(fourOnly > 0){
        fourOnly = fourOnly - 4;
          if(fourOnly % 7 == 0){
            System.out.println("Yes");
            return;
          }
        }
      
      int fourSeven = tmp;      
      while(fourSeven > 0){
          if(fourSeven % 4 == 0){
            System.out.println("Yes");
            return;
          }
        fourSeven = fourSeven - 7;
        }
      System.out.println("No");
      return;
	}
}
