import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("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();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int c = 4; c 4 int d = 7; d 7 int flag = 0; flag 0 int cut = 0; cut 0 for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		} int i=0; int i=0; i 0 i<=25 i 25 i++ i++ i {
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		} {
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		} for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			} int j=0; int j=0; j 0 j<=14 j 14 j++ j++ j {
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			} {
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			} cut = c*i + d*j cut c*i + d*j c*i c i d*j d j if(cut == 0)cut = 4; cut == 0 cut 0 cut = 4 cut 4 if(n%cut==0){flag=1;break;} n%cut==0 n%cut n cut 0 {flag=1;break;} flag=1 flag 1 break; if(cut>100){break;} cut>100 cut 100 {break;} break; if(flag==1)break; flag==1 flag 1 break; if(flag==1)System.out.println("Yes");
		else System.out.println("No"); flag==1 flag 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 sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut == 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
}