import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  }

} import java.util.*; util.* java public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  } main {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.close() sc.close sc String result = "No"; result "No" if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    } N % 4 == 0 || N % 7 == 0 || N % 11 == 0 N % 4 == 0 || N % 7 == 0 || N % 11 == 0 N % 4 == 0 N % 4 N 4 0 N % 7 == 0 N % 7 N 7 0 N % 11 == 0 N % 11 N 11 0 {
      result = "Yes";
    } result = "Yes" result "Yes" if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    } result.equals("No") result.equals result "No" {

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    } for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      } int i = 1; int i = 1; i 1 i <= N / 4 i N / 4 N 4 i++ i++ i {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      } {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      } if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        } (N - (4 * i)) % 7 == 0 (N - (4 * i)) % 7 (N - (4 * i)) N (4 * i) 4 i 7 0 {
          result = "Yes";
          break;
        } result = "Yes" result "Yes" break; if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    } result.equals("No") result.equals result "No" {

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    } for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      } int i = 1; int i = 1; i 1 i <= N / 7 i N / 7 N 7 i++ i++ i {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      } {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      } if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        } (N - (7 * i)) % 4 == 0 (N - (7 * i)) % 4 (N - (7 * i)) N (7 * i) 7 i 4 0 {
          result = "Yes";
          break;
        } result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  }

} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();

    sc.close();

    String result = "No";

    if (N % 4 == 0 || N % 7 == 0 || N % 11 == 0){
      result = "Yes";
    }
    
    if (result.equals("No")){

      for (int i = 1; i <= N / 4; i++) {
        if((N - (4 * i)) % 7 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    if (result.equals("No")){

      for (int i = 1; i <= N / 7; i++) {
        if((N - (7 * i)) % 4 == 0 ) {
          result = "Yes";
          break;
        }
      }

    }

    System.out.println(result);

  }

}