#include <bits/stdc++.h>
using namespace std;
const int maxn = 255;
int a[maxn];
int main(void) {
  int n;
  double sum, ave, d, aa;
  scanf("%d", &n);
  while (n--) {
    sum = 0;
    for (int i = 1; i <= 250; i++) {
      scanf("%d", &a[i]);
      sum += a[i];
    }
    ave = sum / 250;
    d = 0;
    for (int i = 1; i <= 250; i++) {
      d += (a[i] - ave) * (a[i] - ave);
    }
    aa = d / 250;
    if (0.7 * aa <= ave)
      printf("poisson\n");
    else
      printf("uniform\n");
  }
  return 0;
}
