#include <bits/stdc++.h>
using namespace std;
int n, a;
map<int, int> m;
int ans = -100;
int main()
{
cin >> n;
int num = n / 2;
while (n--)
{
cin >> a;
m[a]++;
if (m[a] > num)
ans = a;
}
if (ans == -100)
cout << "no";
else
cout << ans;
return 0;
}