#include <bits/stdc++.h>
int t, a[251];
int main() {
  scanf("%d", &t);
  while (t--) {
    int sum = 0;
    for (int i = 1; i <= 250; i += 1) {
      scanf("%d", &a[i]);
      sum += a[i];
    }
    double aver = (double)sum / 250.0;
    int count = 0;
    for (int i = 1; i <= 250; i += 1) {
      if (std::fabs((double)a[i] - aver) <= aver / 2) count += 1;
    }
    if ((double)count / 250.0 >= 0.75) {
      printf("poisson\n");
    } else {
      printf("uniform\n");
    }
  }
  return 0;
}
