#include <bits/stdc++.h>
using namespace std;
double myPow(double base, int exp) {
  double res = 1.0;
  while (exp) {
    if (exp & 1) {
      res *= base;
    }
    base *= base;
    exp >>= 1;
  }
  return res;
}
double poisson(int p, int k) {
  double res = 1.0;
  for (int i = 1; i <= k; ++i) {
    res *= p;
    res /= i;
  }
  res /= myPow(2.71828, p);
  return res;
}
void solve(vector<int>& nums) {
  int p = 0;
  for (int i : nums) p += i;
  p /= 250;
  double pp = 1.0;
  for (int i = 0; i < 250; ++i) {
    pp *= poisson(p, nums[i]);
  }
  double qq = 1.0 / (2 * p + 1);
  qq = myPow(qq, 250);
  if (pp > qq) {
    cout << "poisson" << endl;
  } else {
    cout << "uniform" << endl;
  }
}
int main() {
  int n;
  cin >> n;
  while (n--) {
    vector<int> nums(250);
    for (int i = 0; i < 250; ++i) cin >> nums[i];
    solve(nums);
  }
  return 0;
}
