
import java.util.Scanner;

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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
     Scanner input=new Scanner(System.in);
     int n=input.nextInt();
     if(n%4==0 || n%7==0){
         System.out.println("Yes");
         return;
     }
     else{
     for(int i=4;i<=n;i+=4){
      for(int j=i+7;j<=n;j+=7){
      if(j==n){    
      System.out.println("Yes");
      return;
      } 
      }
     }
     
     }
    
    System.out.println("No");
    }
}
