#include <bits/stdc++.h>
using namespace std;
const int SS = 5e2 + 123;
const int N = 1e5 + 123;
const int NN = 1e6 + 123;
const int M = 1e7 + 123;
const int MM = 1e8 + 123;
const int inf = 1e9 + 123;
const long long INF = 1e18 + 123;
const long long MAXN = 1e10 + 123;
const long long MOD = 1e9 + 7;
const long long mod = 555557;
const double pi = acos(-1.0);
int t, a[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  for (int i = 1; i <= t; i++) {
    int n = 250, sum = 0;
    long double cnt = 0;
    for (int j = 1; j <= n; j++) {
      cin >> a[j];
      sum += a[j];
    }
    sum /= 250;
    for (int j = 1; j <= n; j++) cnt += (a[j] - sum) * (a[j] - sum);
    cnt /= 250;
    if (cnt < 3 * sum)
      cout << "poisson";
    else
      cout << "uniform";
    cout << endl;
  }
}
