#include <bits/stdc++.h>
using namespace std;
const int N = 10005;
int n, a[N];
int cnt[N];
int main() {
  int T;
  scanf("%d", &(T));
  while (T--) {
    memset(cnt, 0, sizeof(cnt));
    int ex = 0;
    for (int i = 1; i <= 250; i++)
      scanf("%d", &(a[i])), cnt[a[i]]++, ex += a[i];
    ex /= 250;
    int tot = 0;
    for (int i = 1; i <= ex / 3; i++) tot += cnt[i];
    if (tot < 250 / 6 - 25)
      printf("poisson\n");
    else
      printf("uniform\n");
  }
  return 0;
}
