#include <bits/stdc++.h>
int primes[30];
int psize = 0;
bool is_prime(int p) {
  if (p <= 3) return p >= 2;
  if (p % 2 == 0) return false;
  for (int d = 3; d * d <= p; d += 2) {
    if (p % d == 0) return false;
  }
  return true;
}
int main() {
  for (int p = 2; p < 50; ++p) {
    if (is_prime(p)) {
      primes[psize++] = p;
    }
  }
  int yc = 0;
  std::string s;
  bool d2 = false;
  bool d3 = false;
  bool d5 = false;
  bool d7 = false;
  std::cout << 2 << std::endl;
  std::cin >> s;
  if (s == "yes") {
    yc++;
    d2 = true;
  }
  std::cout << 3 << std::endl;
  std::cin >> s;
  if (s == "yes") {
    yc++;
    d3 = true;
  }
  std::cout << 5 << std::endl;
  std::cin >> s;
  if (s == "yes") {
    yc++;
    d5 = true;
  }
  std::cout << 7 << std::endl;
  std::cin >> s;
  if (s == "yes") {
    yc++;
    d7 = true;
  }
  if (yc == 0) {
    std::cout << "prime" << std::endl;
  } else if (yc >= 2) {
    std::cout << "composite" << std::endl;
  } else {
    bool composite = false;
    for (int i = 4; i < psize; ++i) {
      std::cout << primes[i] << std::endl;
      std::cin >> s;
      if (s == "yes") {
        composite = true;
        break;
      }
    }
    if (!composite && d2) {
      std::cout << 4 << std::endl;
      std::cin >> s;
      if (s == "yes") composite = true;
    }
    if (!composite && d3) {
      std::cout << 9 << std::endl;
      std::cin >> s;
      if (s == "yes") composite = true;
    }
    if (!composite && d5) {
      std::cout << 25 << std::endl;
      std::cin >> s;
      if (s == "yes") composite = true;
    }
    if (!composite && d7) {
      std::cout << 49 << std::endl;
      std::cin >> s;
      if (s == "yes") composite = true;
    }
    std::cout << (composite ? "composite" : "prime") << std::endl;
  }
  return 0;
}
