#include #include #include using namespace std; int main() { long long int n,arr[1000],count[200]={0},max,a,b,c; cin>>n; for(int i=0;i>arr[i]; } max=0; for(int i=0;i=c) { count[i]=a; } else { count[i]=c; } if(count[i]>=max) { max=count[i]; } } cout<