#include using namespace std; int main(){ int N; cin >> N; for(int i=0;i> K; map Map; vector vec(0); for(int j=0;j> L; if(!Map[L]) vec.push_back(L); Map[L] = true; } sort(vec.rbegin(),vec.rend()); cout << vec[0]; for(int j=1;j