/*#include <stdio.h>
int main(){
long long int i,j,n,a[80000],s,sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
s=0;
for(j=i+1;j<n;j++){
if(a[i]<=a[j]){
break;
}
s++;
}
sum+=s;
}
printf("%d",sum);
}
*/
#include <stdio.h>
int main(){
int stack[80000],top=0;
long long int cows,cow[80000],i,j;
scanf("%lld",&cows);
for(i=0;i<n;i++){
scanf("%lld",&cow[i]);
}
}



