import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        }
        num = tmp;
        while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        }

        System.out.println(jdg?"Yes":"No");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        }
        num = tmp;
        while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        }

        System.out.println(jdg?"Yes":"No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        }
        num = tmp;
        while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        }

        System.out.println(jdg?"Yes":"No");
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        }
        num = tmp;
        while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        }

        System.out.println(jdg?"Yes":"No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int tmp = num; tmp num boolean jdg = false; jdg false while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        } num > 0 num 0 {
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        } if(num % 4 == 0){
                jdg = true;
                break;
            } num % 4 == 0 num % 4 num 4 0 {
                jdg = true;
                break;
            } jdg = true jdg true break; num -= 7 num 7 num = tmp num tmp while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        } num > 0 num 0 {
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        } if(num % 7 == 0){
                jdg = true;
                break;
            } num % 7 == 0 num % 7 num 7 0 {
                jdg = true;
                break;
            } jdg = true jdg true break; num -= 4 num 4 System.out.println(jdg?"Yes":"No") System.out.println System.out System System.out jdg?"Yes":"No" jdg "Yes" "No" String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            if(num % 4 == 0){
                jdg = true;
                break;
            }
            num -= 7;
        }
        num = tmp;
        while(num > 0){
            if(num % 7 == 0){
                jdg = true;
                break;
            }
            num -= 4;
        }

        System.out.println(jdg?"Yes":"No");
    }
}