import java.util.Scanner;

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

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    }
} Main public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    } main {
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int four = N/4; four N/4 N 4 int seven = N/7; seven N/7 N 7 int count = 0; count 0 for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	} int i = 0; int i = 0; i 0 i <= four i four i++ i++ i {
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	} {
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	} for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    } int j = 0; int j = 0; j 0 j <= seven j seven j++ j++ j {
		if(N == i*4+j*7)
		    count = 1;
	    } {
		if(N == i*4+j*7)
		    count = 1;
	    } if(N == i*4+j*7)
		    count = 1; N == i*4+j*7 N i*4+j*7 i*4 i 4 j*7 j 7 count = 1 count 1 if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No"); count == 1 count 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    }
} public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    }
} Main
import java.util.Scanner;

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

	int N = scan.nextInt();

	int four = N/4;
	int seven = N/7;

	int count = 0;
	for(int i = 0; i <= four; i++){
	    for(int j = 0; j <= seven; j++){
		if(N == i*4+j*7)
		    count = 1;
	    }
	}
	if(count == 1)
	    System.out.println("Yes");
	else
	    System.out.println("No");
    }
}
