#include <bits/stdc++.h>
using namespace std;
const int N = 250;
int a[333];
void test() {
  long long sum = 0, sum2 = 0, cnt = 0;
  for (int i = (0); i <= (int(N) - 1); ++i) {
    scanf("%d", &a[i]);
    sum += a[i];
  }
  double p = 1.0 * sum / N;
  double s = sqrt(p);
  for (int i = (0); i <= (int(N) - 1); ++i) {
    if (fabs(a[i] - p) < s) cnt++;
  }
  if (cnt * 2 < N)
    printf("uniform\n");
  else
    printf("poisson\n");
}
int main() {
  int ttn;
  scanf("%d", &ttn);
  while (ttn--) test();
  return 0;
}
