import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean b[] = new boolean[150]; b new boolean[150] 150 b[4] = b[7] = true b[4] b 4 b[7] = true b[7] b 7 true for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        } int i = 0; int i = 0; i 0 i <= 100 i 100 i++ i++ i {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        } {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        } if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            } b[i] b i {
                b[i + 4] = b[i + 7] = true;
            } b[i + 4] = b[i + 7] = true b[i + 4] b i + 4 i 4 b[i + 7] = true b[i + 7] b i + 7 i 7 true System.out.println(b[N] ? "Yes" : "No") System.out.println System.out System System.out b[N] ? "Yes" : "No" b[N] b N "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean b[] = new boolean[150];
        b[4] = b[7] = true;
        for (int i = 0; i <= 100; i++) {
            if (b[i]) {
                b[i + 4] = b[i + 7] = true;
            }
        }
        System.out.println(b[N] ? "Yes" : "No");
    }
}
