#include int main(){ int n,i; scanf("%d",&n); long long h[n],max=0; for(i = 0; i < n; i++){ scanf("%lld",&h[i]); if(max