#include using namespace std; int main(void){ int n; cin>>n; int a[10000]; for(int i=0; i>a[i]; sort(a,a+n); int ans = INT_MIN; for(int i=0; i