import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

bool calc(int n) {
    for (int i = 0; i < 100; i++) {
        for (int j = 0; j < 100; j++) {
            if (n == i * 4 + j * 7) {
                return true;
            }
        }
    }
    return false;
}

void main() {
    int n = readint;
    writeln(calc(n) ? "Yes" : "No");
}
