import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int c = 4; c 4 int d = 7; d 7 int count = sc.nextInt(); count sc.nextInt() sc.nextInt sc int total = 0; total 0 String answer = "No"; answer "No" for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	} int i=0; int i=0; i 0 i<30 i 30 i++ i++ i {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	} {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	} for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      } int j=0; int j=0; j 0 j<30 j 30 j++ j++ j {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      } {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      } total = c * i + d * j total c * i + d * j c * i c i d * j d j if(total == count) {
          answer = "Yes";
        } total == count total count {
          answer = "Yes";
        } answer = "Yes" answer "Yes" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
        }
      }
  	}
    System.out.println(answer);
  }
}