import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int sweet = N; sweet N if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        } N % 7 == 0 N % 7 N 7 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        } while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        } sweet > 0 sweet 0 {
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        } sweet =sweet - 4 sweet sweet - 4 sweet 4 if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            } sweet  % 7 == 0 sweet  % 7 sweet 7 0 {
                System.out.println("Yes");
                break;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" break; {
                
            } if(sweet < 0){
            System.out.println("No");
        } sweet < 0 sweet 0 {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int sweet = N;
        if(N % 7 == 0){
            System.out.println("Yes");
        }else{
            while(sweet > 0){
            sweet =sweet - 4;
            if(sweet  % 7 == 0){
                System.out.println("Yes");
                break;
            }else{
                
            }
        }
        if(sweet < 0){
            System.out.println("No");
        }
        
        
        }
        
    }
}
