import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int a = 4; a 4 int b = 7; b 7 String ans = "No"; ans "No" for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i <= n i n i++ i++ i {
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    } {
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    } for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      } int j = 0; int j = 0; j 0 j <= n-i j n-i n i j++ j++ j {
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      } {
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      } if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        } n-(a*i+b*j) == 0 n-(a*i+b*j) n (a*i+b*j) a*i a i b*j b j 0 {
          ans = "Yes";
          break;
        } ans = "Yes" ans "Yes" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int a = 4;
    int b = 7;
    String ans = "No";
    for(int i = 0; i <= n; i++){
      for(int j = 0; j <= n-i; j++){
        if(n-(a*i+b*j) == 0){
          ans = "Yes";
          break;
        }
      }
    }
    System.out.println(ans);
  }
}