import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    }
  } import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    }
  } Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    } main {
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      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 int cnt = 0; cnt 0 if(cnt==0)
      System.out.println("No"); cnt==0 cnt 0 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();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    }
  } public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    }
  } Main
import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int n = scan.nextInt();
    int cnt = 0;

    outside:for(int i = 0; i <= n/4; i++){
      for(int j = 0; j <= n/7; j++){
        if(4*i + 7*j == n){
          System.out.println("Yes");
          cnt++;
          break outside;
      }
    }
  }

    if(cnt==0)
      System.out.println("No");
    }
  }
