
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int N = scan.nextInt();
        boolean found  = false;
        for (int i = 0; i * 4 <= N; i++) {
            for (int j = 0; i* 4 + j * 7 <= N; j++) {
                if (i * 4 +  j * 7 == N) {
                    found = true;
                }
            }
        }
        System.out.println(found ? "Yes" : "No");
    }
}
