import java.util.*;
 
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int ans = 0;
    for(int i=0; i<=25; i++){
      for(int j=0; j<=14; j++){
        int total = 4*i + 7*j;
        if(n == total){
          ans++;
        }
      }
    }
    if(ans != 0){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    sc.close();
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int ans = 0;
    for(int i=0; i<=25; i++){
      for(int j=0; j<=14; j++){
        int total = 4*i + 7*j;
        if(n == total){
          ans++;
        }
      }
    }
    if(ans != 0){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int ans = 0;
    for(int i=0; i<=25; i++){
      for(int j=0; j<=14; j++){
        int total = 4*i + 7*j;
        if(n == total){
          ans++;
        }
      }
    }
    if(ans != 0){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int ans = 0;
    for(int i=0; i<=25; i++){
      for(int j=0; j<=14; j++){
        int total = 4*i + 7*j;
        if(n == total){
          ans++;
        }
      }
    }
    if(ans != 0){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

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

    sc.close();
  }
}
