#include using namespace std; int main() { int n; cin>>n; map mm; int val=INT_MIN,ans; for(int i=0;i>a; mm[a]++; if(val