import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	}
} Main public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	} main {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	} int n; n Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		} n >= 4 n 4 {
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		} if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			} n % 4 == 0 || n % 7 == 0 n % 4 == 0 n % 4 n 4 0 n % 7 == 0 n % 7 n 7 0 {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			} n > 4 n 4 {
				n = n - 4;
			} n = n - 4 n n - 4 n 4 if(n > 7){
				n = n - 7;
			} n > 7 n 7 {
				n = n - 7;
			} n = n - 7 n n - 7 n 7 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) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	}
} public class Main{
	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	}
} Main
import java.util.*;
import java.io.*;

public class Main{
	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		while(n >= 4){
			if(n % 4 == 0 || n % 7 == 0){
				System.out.println("Yes");
				return;
			}
			else if(n > 4){
				n = n - 4;
			}
			else if(n > 7){
				n = n - 7;
			}
		}
		System.out.println("No");
	}
}
