import java.util.*;

class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		String ans = "No";

		for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			}

			System.out.println(ans);

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

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		String ans = "No";

		for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) 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";

		for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			}

			System.out.println(ans);

	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		String ans = "No";

		for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) 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" for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			} int j =0; int j =0; j 0 j <= N /4 j N /4 N 4 j++ j++ j for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			} for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			} int k = 0; int k = 0; k 0 k <= N / 7 k N / 7 N 7 k++ k++ k {
					if(4*j + 7*k == N) ans = "Yes";
			} {
					if(4*j + 7*k == N) ans = "Yes";
			} if(4*j + 7*k == N) ans = "Yes"; 4*j + 7*k == N 4*j + 7*k 4*j 4 j 7*k 7 k N ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans 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 ans = "No";

		for(int j =0; j <= N /4; j++)
			for(int k = 0; k <= N / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			}

			System.out.println(ans);

	}
}