import java.util.*;

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

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String answer = "No";
    for (int i = 0; i <= n; i++) {
      if (answer == "Yes") break;
      for (int j = 0; j <= n; j++) {
        int sum = i * 4 + j * 7;
        if (sum == n) {
          answer = "Yes";
          break;
        }
      }
    }
    System.out.println(answer);
  }
}