import java.util.*;
public class Main{
	static String SweetsJudge(int k){
		for(int i=0; i<=k/4; i++){
			if((k-4*i)%7==0)return "Yes";
		}
		return "No";
	}

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

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

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

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

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		System.out.println(SweetsJudge(n));
	}
}