#include <stdio.h>

int main(void) {
	// your code goes here
    int a,b;
    scanf("%d",&a);
    for(b=2;b<=a-1;b++)  if(a%b==0) break;
    {
     if(a>b)  printf("yes");
     else  printf("na");
    }
	return 0;
}
