import java.util.*;
public class Try {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int temp = 0;
int i = 2;
for (i = 2; i <= n - 1; i++)
;
{
if (n % i == 0) {
temp = temp + 1;
}
}
if (temp == 0) {
System.out.println(" prime no");
} else {
System.out.println("NON prime no");
}
}
}