import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); }
		  } import java.util.Scanner; Scanner java.util public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); }
		  } Main public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); } main {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			} N % 4 == 0 N % 4 N 4 0 { 
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			} if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				} N >= 7 N 7 {
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				} N = N - 7 N N - 7 N 7 if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					} N % 4 == 0 N % 4 N 4 0 {
						System.out.println("Yes");
					} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					} if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						} N >=  7 N 7 {
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						} N = N - 7 N N - 7 N 7 if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							} N % 4 == 0 N % 4 N 4 0 {
								System.out.println("Yes");
							} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							} if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								} N >= 7 N 7 {
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								} N = N - 7 N N - 7 N 7 if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									} N % 4 == 0 N % 4 N 4 0 {
										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" {
									System.out.println("No");
								} System.out.println("No") System.out.println System.out System System.out "No" {
							System.out.println("No");
						} System.out.println("No") System.out.println System.out System System.out "No" {
					System.out.println("No");
				} System.out.println("No") System.out.println System.out System System.out "No" scanner.close() scanner.close scanner String args[] args public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); }
		  } public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); }
		  } Main
import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
			int N = scanner.nextInt();
			
			if( N % 4 == 0 ) 
			{ 
				System.out.println("Yes");
			}
			else 
			{
				if( N >= 7 ) 
				{
					N = N - 7;
					if( N % 4 == 0 ) 
					{
						System.out.println("Yes");
					}
					else 
					{
						if( N >=  7)
						{
							N = N - 7;
							if( N % 4 == 0) 
							{
								System.out.println("Yes");
							}
							else 
							{
								if( N >= 7 ) 
								{
									N = N - 7;
									if( N % 4 == 0 ) 
									{
										System.out.println("Yes");
									}
									else 
									{
										System.out.println("No");
									}
								}
								else 
								{
									System.out.println("No");
								}
							}
						}
						else 
						{
							System.out.println("No");
						}
					}
				}
				else 
				{
					System.out.println("No");
				}
			}
		    scanner.close(); }
		  }