import java.util.Scanner;

public class Main {
	static int N = 0;
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	}
	public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int N = 0;
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	}
	public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	}
} Main static int N = 0; N 0 public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	} main {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) N = reader.nextInt() N reader.nextInt() reader.nextInt reader reader.close() reader.close reader if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		} execute(0) execute 0 {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" { 
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" String[] args args public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	} execute {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	} if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		} num < N num N {
			return execute(num + 4) || execute(num + 7);
		} return execute(num + 4) || execute(num + 7); execute(num + 4) || execute(num + 7) execute(num + 4) execute num + 4 num 4 execute(num + 7) execute num + 7 num 7 {
			return  (num == N);
		} return  (num == N); (num == N) num N int num num public class Main {
	static int N = 0;
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	}
	public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	}
} public class Main {
	static int N = 0;
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	}
	public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	static int N = 0;
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		N = reader.nextInt();;
		reader.close();
		if (execute(0)) {
			System.out.print("Yes");
		} else { 
			System.out.print("No");
		}
	}
	public static boolean execute(int num) {
		if (num < N) {
			return execute(num + 4) || execute(num + 7);
		} else {
			return  (num == N);
		}
	}
}
