import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	}
} Main public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	} main {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	} final int CAKE = 4; CAKE 4 final int DONUTS = 7; DONUTS 7 int N; N boolean frag = false; frag false Scanner scan = new Scanner(System.in); scan new Scanner(System.in) N = scan.nextInt() N scan.nextInt() scan.nextInt scan for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		} int i = 0; int i = 0; i 0 i <= N / CAKE i N / CAKE N CAKE i++ i++ i {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		} {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		} if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			} ( N - (CAKE * i) ) % DONUTS == 0 ( N - (CAKE * i) ) % DONUTS ( N - (CAKE * i) ) N (CAKE * i) CAKE i DONUTS 0 {
				frag = true;
				break;
			} frag = true frag true break; {
				frag = false;
			} frag = false frag false if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		} frag == true frag true {
			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" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	}
} public class Main {

	public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		final int CAKE = 4; //ケーキ1個の値段
		final int DONUTS = 7; //ドーナツ1個の値段
		int N; //合計金額
		boolean frag = false;

		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for( int i = 0; i <= N / CAKE; i++ ) {
			if ( ( N - (CAKE * i) ) % DONUTS == 0 ) {
				frag = true;
				break;
			}else {
				frag = false;
			}
		}

		if( frag == true ) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}

		scan.close();

	}
}