import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();
		boolean flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			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 flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			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 flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
		
	} main {
		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();
		boolean flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			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 flag = false; flag false for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		} int i = 0; int i = 0; i 0 i <= 100/4 i 100/4 100 4 i ++ i ++ i {
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		} {
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		} for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			} int j = 0; int j = 0; j 0 j <= 100/7 j 100/7 100 7 j++ j++ j {
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			} {
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			} if(4 * i + 7 * j == n){
					flag = true;
					break;
				} 4 * i + 7 * j == n 4 * i + 7 * j 4 * i 4 i 7 * j 7 j n {
					flag = true;
					break;
				} flag = true flag true break; if(flag == true) break; flag == true flag true break; if(flag == true){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} flag == true flag true {
			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 flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			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 flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			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 flag = false;
		for(int i = 0; i <= 100/4; i ++){
			for(int j = 0; j <= 100/7; j++){
				if(4 * i + 7 * j == n){
					flag = true;
					break;
				}
			}
			if(flag == true) break;
		}
		
		if(flag == true){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
		
	}

}
