#include <bits/stdc++.h> #define ll long long int using namespace std; void mainSolve() { int n; cin >> n; vector<int> v(n); for (int i = 0; i < n; i++) cin >> v[i]; unordered_map<int, int> m; for (int x : v) ++m[x]; int count = 0; int ans = 1; for (auto it : m) { if (it.second >= count) count = it.second, ans = it.first; } int confusion = 0; for (auto it : m) if (it.second == count) ++confusion; if (confusion > 1) cout << "CONFUSED\n"; else cout << ans << endl; } int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif int t; cin >> t; while (t--) { mainSolve(); } return 0; }