#include <bits/stdc++.h>
using namespace std;
const int N = 250;
int t, a[N];
void read_input() {
  for (int i = 0; i < N; i++) cin >> a[i];
}
void solve() {
  long long sum = 0;
  int P = round(accumulate(a, a + N, 0) / N);
  for (int i = 0; i < N; i++) sum += (P - a[i]) * (P - a[i]);
  cout << (abs(sum - P * P / 4. * N) < abs(sum - P * P / 16. * N)
               ? "uniform\n"
               : "poisson\n");
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  for (cin >> t; t--;) read_input(), solve();
  return 0;
}
