import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            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 boolean a = false; a false if (a == false) {
            System.out.println("No");
        } a == false a false {
            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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean a = false;
        soto: for(int i = 0; i <= n/4; i++){
            for(int j = 0; j <= n/7; j++){
                int k = 4*i+7*j;
                if (k == n) {
                    a = true;
                    System.out.println("Yes");
                    break soto;
                }
            }
        }
        if (a == false) {
            System.out.println("No");
        }
    }
}