#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    vector<int> V(250);
    int sum = 0;
    for (int j = 0; j < 250; j++) {
      cin >> V[j];
      sum += V[j];
    }
    double P = double(sum) / 250;
    double cnt = 0;
    for (int j = 0; j < 250; j++) {
      if (0.499 * P <= V[j] and V[j] <= 1.501 * P) {
        cnt++;
      }
    }
    cnt /= 250;
    if (cnt > 0.75) {
      cout << "poisson\n";
    } else {
      cout << "uniform\n";
    }
  }
  return 0;
}
