import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    } N % 7 == 4 N % 7 N 7 4 {
      ans = "Yes";
    } ans = "Yes" ans "Yes" if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    } N % 7 == 0 N % 7 N 7 0 {
      ans = "Yes";
    } ans = "Yes" ans "Yes" if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    } N % 4 == 0 N % 4 N 4 0 {
      ans = "Yes";
    } ans = "Yes" ans "Yes" if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    } N % 7 == 1 && N > 1 N % 7 == 1 N % 7 N 7 1 N > 1 N 1 {
      ans = "Yes";
    } ans = "Yes" ans "Yes" if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    } N % 7 == 5 && N > 5 N % 7 == 5 N % 7 N 7 5 N > 5 N 5 {
      ans = "Yes";
    } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String ans = "No";
	if (N % 7 == 4) {
      ans = "Yes";
    } else if (N % 7 == 0) {
      ans = "Yes";
    } else if (N % 4 == 0) {
      ans = "Yes";
    } else if (N % 7 == 1 && N > 1) {
      ans = "Yes";
    } else if (N % 7 == 5 && N > 5) {
      ans = "Yes";
    }
    System.out.println(ans);
  }
}
