#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.141592653589793238462643383;
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int Ceil(long long int a, long long int b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b + 1;
}
const int MAX = 200009;
const int MOD = 1e9 + 7;
const int inf = 1e9 + 10;
long double Abs(long double x) {
  if (x > 0) return x;
  return -x;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int v;
  cin >> v;
  for (int aa = 0; aa < (v); ++aa) {
    long double p = 0, a[300], sd = 0;
    int len = 250;
    for (int i = 0; i < (len); ++i) cin >> a[i], p += a[i];
    p /= len;
    for (int i = 0; i < (len); ++i) sd += (a[i] - p) * (a[i] - p);
    sd /= len;
    if (Abs(sd - p) > Abs(sd - p * (p + 1) / 3))
      cout << "uniform\n";
    else
      cout << "poisson\n";
  }
  return 0;
}
