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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        System.out.println(flag ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        boolean flag = false;
        for (int i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        } int i = 0; int i = 0; i 0 i <= 100 i 100 i+=4 i+=4 i 4 {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        } {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        } for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            } int j = 0; int j = 0; j 0 j <= 100-i j 100-i 100 i j+=7 j+=7 j 7 {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            } {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            } if (i+j == n)
                    flag = true; i+j == n i+j i j n flag = true flag true if (i+j > n)
                    break; i+j > n i+j i j n break; 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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        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 i = 0; i <= 100; i+=4) {
            for (int j = 0; j <= 100-i; j+=7) {
                if (i+j == n)
                    flag = true;
                if (i+j > n)
                    break;
            }
        }
        
        System.out.println(flag ? "Yes" : "No");
    }
}
