import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	} main {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = Integer.parseInt(in.nextLine()); n Integer.parseInt(in.nextLine()) Integer.parseInt Integer in.nextLine() in.nextLine in boolean result = false; result false for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} int i = 0; int i = 0; i 0 i <= 100 i 100 i = i + 7 i = i + 7 i i + 7 i 7 {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			} int j = 0; int j = 0; j 0 i + j <= 100 i + j i j 100 j = j + 4 j = j + 4 j j + 4 j 4 {
				if (i + j == n) {
					result = true;
					break;
				}
			} {
				if (i + j == n) {
					result = true;
					break;
				}
			} if (i + j == n) {
					result = true;
					break;
				} i + j == n i + j i j n {
					result = true;
					break;
				} result = true result true break; if (result) {
				break;
			} result {
				break;
			} break; if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} result {
			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" in.close() in.close in String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		boolean result = false;
		for (int i = 0; i <= 100; i = i + 7) {
			for (int j = 0; i + j <= 100; j = j + 4) {
				if (i + j == n) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		if (result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		in.close();
	}
}