import java.util.*;
import java.util.ArrayList;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int flag = 0; flag 0 if(n%4 == 0 || n%7 == 0){
            flag = 1;
        } n%4 == 0 || n%7 == 0 n%4 == 0 n%4 n 4 0 n%7 == 0 n%7 n 7 0 {
            flag = 1;
        } flag = 1 flag 1 while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        } n >= 0 n 0 {
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        } n = n-4 n n-4 n 4 if(n % 7 == 0){
                flag = 1;
                break;
            } n % 7 == 0 n % 7 n 7 0 {
                flag = 1;
                break;
            } flag = 1 flag 1 break; if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        } flag == 1 flag 1 {
            System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
            System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} Main
import java.util.*;
import java.util.ArrayList;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int flag = 0;
        if(n%4 == 0 || n%7 == 0){
            flag = 1;
        }
        while(n >= 0){
            n = n-4;
            if(n % 7 == 0){
                flag = 1;
                break;
            }
        }
        if(flag == 1){
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
}