#include <bits/stdc++.h>
using namespace std;
int a[250 + 5];
int main() {
  int T_T;
  cin >> T_T;
  while (T_T--) {
    for (int i = 1; i <= 250; i++) cin >> a[i];
    sort(a + 1, a + 250 + 1);
    int mid = (a[124] + a[125]) / 2;
    int l = mid - mid / 2;
    int r = mid + mid / 2;
    double c1 = 0, c2 = 0;
    for (int i = 1; i <= 250; i++)
      if (a[i] >= l && a[i] <= r)
        c1++;
      else
        c2++;
    if (c2 == 0) c2 = 0.00001;
    if (c1 / c2 <= 3)
      cout << "uniform" << endl;
    else
      cout << "poisson" << endl;
  }
  return 0;
}
