#include <bits/stdc++.h>
using namespace std;
int freq[2500];
void test() {
  memset(freq, 0, sizeof freq);
  int sum = 0;
  for (int i = 1; i <= 250; ++i) {
    int sample;
    cin >> sample;
    if (sample > 2000) {
      cout << "poisson\n";
      return;
    }
    ++freq[sample];
    sum += sample;
  }
  int P = sum / 250;
  int dev = 0;
  for (int i = 0; i <= 2000; ++i) dev += freq[i] * (i - P) * (i - P);
  dev /= 250;
  int v1 = P;
  int v2 = P * P / 3;
  if (abs(v1 - dev) < abs(v2 - dev))
    cout << "poisson\n";
  else
    cout << "uniform\n";
}
int main() {
  srand(time(NULL));
  int T = 0;
  cin >> T;
  while (T--) test();
  return 0;
}
