#include <bits/stdc++.h>
int v, p[300], sum, res;
double ave;
int main() {
  scanf("%d", &v);
  while (v--) {
    res = 0, sum = 0;
    for (register int i = 0; i < 250; ++i) {
      scanf("%d", &p[i]);
      sum += p[i];
    }
    ave = sum / 250.0;
    for (register int i = 0; i < 250; ++i)
      if (fabs(p[i] - ave) <= ave / 2.0) ++res;
    if (res > 175)
      printf("poisson\n");
    else
      printf("uniform\n");
  }
  return 0;
}
