import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int mod7 = n / 7; mod7 n / 7 n 7 int mod4 = n / 4; mod4 n / 4 n 4 boolean f = false; f false for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    } int j = 0; int j = 0; j 0 j <= mod7 j mod7 j++ j++ j {
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    } {
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    } for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      } int i = 0; int i = 0; i 0 i <= mod4 i mod4 i++ i++ i {
        if(7 * j + 4 * i == n)
          f = true;
      } {
        if(7 * j + 4 * i == n)
          f = true;
      } if(7 * j + 4 * i == n)
          f = true; 7 * j + 4 * i == n 7 * j + 4 * i 7 * j 7 j 4 * i 4 i n f = true f true if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes"); f == false f false System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int mod7 = n / 7;
    int mod4 = n / 4;
    boolean f = false;
    
    for(int j = 0; j <= mod7; j++){
      for(int i = 0; i <= mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
}
