import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[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[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[n] ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[n] ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[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[] dp = new boolean[n+1]; dp new boolean[n+1] n+1 n 1 dp[0] = true dp[0] dp 0 true for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        } {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        } if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            } ((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7]) ((i - 4 >= 0) && dp[i-4]) (i - 4 >= 0) i - 4 i 4 0 dp[i-4] dp i-4 i 4 ((i - 7 >= 0) && dp[i-7]) (i - 7 >= 0) i - 7 i 7 0 dp[i-7] dp i-7 i 7 {
                dp[i] = true;
            } dp[i] = true dp[i] dp i true System.out.println(dp[n] ? "Yes" : "No") System.out.println System.out System System.out dp[n] ? "Yes" : "No" dp[n] dp 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[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[n] ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[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[] dp = new boolean[n+1];
        dp[0] = true;

        for (int i = 1; i <= n; i++) {
            if (((i - 4 >= 0) && dp[i-4]) || ((i - 7 >= 0) && dp[i-7])) {
                dp[i] = true;
            }
        }

        System.out.println(dp[n] ? "Yes" : "No");
    }
}