import java.awt.*;
import java.io.*;
public class Data1
{

    public static void main (String[] args) throws IOException
    {
	int p = 0;
	int count = 0;
	int x = 3;
	BufferedReader input = new BufferedReader (new FileReader ("DATA1.txt"));
	PrintWriter output = new PrintWriter (new FileWriter ("OUT1.txt"));
	String Line1 = input.readLine ();
	String Line2 = input.readLine ();
	String Line3 = input.readLine ();
	String Line4 = input.readLine ();
	String Line5 = input.readLine ();
	int a = Integer.parseInt (Line1);
	int b = Integer.parseInt (Line2);
	int c = Integer.parseInt (Line3);
	int d = Integer.parseInt (Line4);
	int e = Integer.parseInt (Line5);
	for (x = 3 ; x <= 1001 ; x++)
	{
	    if (x == 3 || x == 2)
	    {
		p = x;
		//output.println (p);
	    }
	   else
	    {
		if (x % 2 > 0 && x % 3 > 0)
		{
		    
		}
       p = x;
	    }

	    if (a % p == 0)
	    {
		count++;
	    }

	}
	if (count == 2)
	{
	    output.println ("semiprime");
	}
	else
	    output.println ("not");
	int test = 4 % 2;
	output.println (test);
	output.println (count);
	output.close ();
	//PrintWriter output = new PrintWriter (new FileWriter (OUT1.txt));



	//output = new PrintWriter (new FileWriter (DATA1.txt));

	// Place your program here.  'c' is the output console
    } // main method
} // Data1 class



