import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  }
} import java.util.*; util.* java public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  }
} Main public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  } main { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int maxCnt = n / 4; maxCnt n / 4 n 4 for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      } int k = 0; int k = 0; k 0 k <= maxCnt k maxCnt k++ k++ k {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      } {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      } int diff = n - k * 4; diff n - k * 4 n k * 4 k 4 if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        } diff % 7 == 0 diff % 7 diff 7 0 {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  }
} public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  }
} Main
import java.util.*;
public class Main {

  public static void main(String[] args) { 
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int maxCnt = n / 4;
      for(int k = 0; k <= maxCnt; k++) {
        int diff = n - k * 4;
        if(diff % 7 == 0) {
            System.out.println("Yes");
            return;
        }
      }
      System.out.println("No");
  }
}