import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn boolean ans = false; ans false for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		} int i = 0; int i = 0; i 0 i <= N/7 i N/7 N 7 i++ i++ i {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		} {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		} if((N-7*i)%4 == 0) {
				ans = true;
			} (N-7*i)%4 == 0 (N-7*i)%4 (N-7*i) N 7*i 7 i 4 0 {
				ans = true;
			} ans = true ans true if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} ans {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} 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 stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		boolean ans = false;
		for(int i = 0; i <= N/7; i++) {
			if((N-7*i)%4 == 0) {
				ans = true;
			}
		}
		if(ans) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}

}