import java.util.Scanner;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        for (int i = 0; i < 15; i++) {
            if (N % 4 == 0) {
                System.out.println("Yes");
                break;
            }
            N -= 7;
            if (N < 0) {
                System.out.println("No");
                break;
            }
        }
    }
}