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