import java.util.Scanner;

class Main {
	public static void main(String[] args) {
	
	Scanner stdIn = new Scanner(System.in);
	
	byte n = stdIn.nextByte();
	int ncake = 0;
	int ndonut = 0;
	int total;
	
	do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100);
	
	System.out.println("No");
	
	}

} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
	
	Scanner stdIn = new Scanner(System.in);
	
	byte n = stdIn.nextByte();
	int ncake = 0;
	int ndonut = 0;
	int total;
	
	do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100);
	
	System.out.println("No");
	
	}

} Main public static void main(String[] args) {
	
	Scanner stdIn = new Scanner(System.in);
	
	byte n = stdIn.nextByte();
	int ncake = 0;
	int ndonut = 0;
	int total;
	
	do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100);
	
	System.out.println("No");
	
	} main {
	
	Scanner stdIn = new Scanner(System.in);
	
	byte n = stdIn.nextByte();
	int ncake = 0;
	int ndonut = 0;
	int total;
	
	do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100);
	
	System.out.println("No");
	
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) byte n = stdIn.nextByte(); n stdIn.nextByte() stdIn.nextByte stdIn int ncake = 0; ncake 0 int ndonut = 0; ndonut 0 int total; total do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100); total <= 100 total 100 {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100); total <= 100 total 100 {
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} total = 4*ncake + 7*ndonut total 4*ncake + 7*ndonut 4*ncake 4 ncake 7*ndonut 7 ndonut if (total == n) {
				System.out.println("Yes");
				return;
			} total == n total n {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; ndonut = ndonut + 1 ndonut ndonut + 1 ndonut 1 ndonut = 0 ndonut 0 ncake = ncake + 1 ncake ncake + 1 ncake 1 total = 0 total 0 total = 4*ncake + 7*ndonut total 4*ncake + 7*ndonut 4*ncake 4 ncake 7*ndonut 7 ndonut System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
	
	Scanner stdIn = new Scanner(System.in);
	
	byte n = stdIn.nextByte();
	int ncake = 0;
	int ndonut = 0;
	int total;
	
	do {
	
		do{
		
			total = 4*ncake + 7*ndonut;
					
			if (total == n) {
				System.out.println("Yes");
				return;
			}
		
			ndonut = ndonut + 1;
		
		} while (total <= 100);
		
		ndonut = 0;
		
		ncake = ncake + 1;
		
		total = 0;
		total = 4*ncake + 7*ndonut;
		
	} while (total <= 100);
	
	System.out.println("No");
	
	}

}