import std.stdio;
import std.string;

void main ()
{
	int divs = 0;
	foreach (p; 2..51)
	{
		bool ok = true;
		for (int d = 2; d * d <= p; d++)
		{
			if (p % d == 0)
			{
				ok = false;
			}
		}
		if (!ok)
		{
			continue;
		}
		writeln (p);
		stdout.flush ();
		bool cur = (readln.strip == "yes");
		divs += cur;
		if (cur && p * p <= 100)
		{
			writeln (p * p);
			stdout.flush ();
			bool next = (readln.strip == "yes");
			divs += next;
		}
	}
	writeln (divs > 1 ? "composite" : "prime");
}
