#include #include using namespace std; int num[100010]; int main() { freopen("data.txt","r",stdin); int n; scanf("%d",&n); for(int i=0;imax) max=maxn; } printf("%d\n",max); return 0; }