#include #include #include #include #include #include using namespace std; typedef long long int ll; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ ll h[100000+5],n; cin>>n; ll max=0; for(ll i=0;i>h[i]; if(h[i]>=max) { max=h[i]; } } ll nob=0; for(ll i=0;i