#include using namespace std; typedef long long ll; typedef vector vi; typedef pair pii; typedef pair pll; typedef vector vpii; typedef unsigned long long llu; #define author ayushtomar #define rf freopen("in.txt", "r", stdin) #define wf freopen("out.txt", "w", stdout) #define debug(x) cerr<<#x<<" "< ma; int main() { int n; cin>>n; int ans=-1; for(int i=0;i>x; ma[x]++; ans=max(ans,x); } cout<