#include <bits/stdc++.h>
using namespace std;
int T, a[260];
int main() {
  scanf("%d", &T);
  while (T--) {
    int s = 0;
    int ct = 0;
    for (int i = 0; i < 250; i++) {
      scanf("%d", &a[i]);
      s += a[i];
    }
    double ave = s / 250.0;
    for (int i = 0; i < 250; i++) {
      if (fabs(a[i] - ave) <= ave / 2) ct++;
    }
    if (ct > 250 * 0.75)
      printf("poisson\n");
    else
      printf("uniform\n");
  }
  return 0;
}
