#include <bits/stdc++.h>
using namespace std;
int a[333];
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int n = 250;
    double s = 0;
    double t = 0;
    for (int i = 1; i <= n; ++i) {
      scanf("%d", &a[i]);
      s += a[i];
      t += a[i] * a[i];
    }
    double e = s / n;
    double e2 = t / n;
    double d = e2 - e * e;
    if (d / e >= 2)
      puts("uniform");
    else
      puts("poisson");
  }
  return 0;
}
