import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.Scanner;

import javax.swing.plaf.synth.SynthSeparatorUI;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Deque; Deque java.util import java.util.Scanner; Scanner java.util import javax.swing.plaf.synth.SynthSeparatorUI; SynthSeparatorUI javax.swing.plaf.synth public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		} N % 7 == 0 N % 7 N 7 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		} N % 4 == 0 N % 4 N 4 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		} int n = N / 7; n N / 7 N 7 boolean flag = false; flag false for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			} int i = 0; int i = 0; i 0 i <= n i n i++ i++ i {
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			} {
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			} if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				} (N - i * 7) % 4 == 0 (N - i * 7) % 4 (N - i * 7) N i * 7 i 7 4 0 {
					flag = true;
					break;
				} flag = true flag true break; if(flag) System.out.println("Yes");
			else System.out.println("No"); flag System.out.println("Yes") System.out.println System.out System System.out "Yes" 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) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.Scanner;

import javax.swing.plaf.synth.SynthSeparatorUI;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		if(N % 7 == 0) System.out.println("Yes");
		else if(N % 4 == 0) System.out.println("Yes");
		else{
			int n = N / 7;
			boolean flag = false;
			for(int i = 0; i <= n; i++){
				if((N - i * 7) % 4 == 0){
					flag = true;
					break;
				}
			}
			if(flag) System.out.println("Yes");
			else System.out.println("No");
		}
	}
}