//#include <stdio.h>
//#include <windows.h>
//#define MAXSIZE 80001
//
//int n;
//int top = 0;
//int stack[MAXSIZE];
//int a[MAXSIZE];
//
//void compare(int x) {
// int t = 0;
// int temp = top;
// while(stack[top-1] <= x) {
// t++;
// pop();
// }
// a[temp] = t;
// push(x);
//}
//
//void push(int x) {
// stack[top] = x;
// top++;
//}
//
//void pop() {
// top--;
// stack[top] = 0;
//}
//
//void printStack() {
// for(int i = 0; i<n; i++) {
// printf("\n%d", stack[i]);
// }
//}
//
//int main() {
// int x;
// int sum = 0;
// scanf("%d", &n);
// for(int i = 0; i<n; i++) {
// scanf("%d", &x);
// if(top == 0) {
// push(x);
// }
// else {
// compare(x);
// }
// printStack();
// printf("\n");
// }
// for(int i = 0; i<n; i++) {
// sum = sum + a[i];
// }
//}
#include<stdio.h>
int main() {
int v,n;
}



