import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean flag = false; flag false for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        } int a = 0; int a = 0; a 0 N - a >= 0 N - a N a 0 a += 7 a += 7 a 7 {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        } {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        } if ((N - a) % 4 == 0) {
                flag = true;
            } (N - a) % 4 == 0 (N - a) % 4 (N - a) N a 4 0 {
                flag = true;
            } flag = true flag true System.out.println(flag ? "Yes" : "No") System.out.println System.out System System.out flag ? "Yes" : "No" flag "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 flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        boolean flag = false;
        for (int a = 0; N - a >= 0; a += 7) {
            if ((N - a) % 4 == 0) {
                flag = true;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
}