import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	}
} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	} main {
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int cates = 4; cates 4 int donuts = 7; donuts 7 int sum = 0; sum 0 boolean result = false; result false for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    } int i = 0; int i = 0; i 0 sum < n sum n i++ i++ i {
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    } {
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    } sum = donuts*i sum donuts*i donuts i if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      } (n-sum)<0 (n-sum) n sum 0 {
        break;
      } break; if((n-sum)%cates==0){
        result = true;
        break;
      } (n-sum)%cates==0 (n-sum)%cates (n-sum) n sum cates 0 {
        result = true;
        break;
      } result = true result true break; if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    } result {
      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" String[] args args public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	}
} public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt(); //判定金額
    int cates = 4;
    int donuts = 7;
    int sum = 0;
    boolean result = false;
    
    for(int i = 0; sum < n; i++){
      sum = donuts*i;
      if((n-sum)<0){
        break;
      }
      else if((n-sum)%cates==0){
        result = true;
        break;
      }
    }
    
    if(result){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }
    
	}
}