#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() {
  int sum = 0;
  for (int i = 0; i < N; i++) sum += a[i] * a[i];
  double P = sqrt(1. * sum / N);
  for (int i = 0; i < N; i++)
    if (abs(a[i]) > 2 * P) {
      cout << "poisson\n";
      return;
    }
  cout << "uniform\n";
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  for (cin >> t; t--; read_input(), solve())
    ;
  return 0;
}
