#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include MAX 100
int main() {
    int t;
    if(scanf("%d" ,&t) !=1) {
        printf("invalid input\n");
        return 0;
    }
    if(t < 1|| t > 100000) {
        printf("invalid input\n");
        return 0;
    }
    int stack[MAX];
    int top = -1;
    char command[20];
    for (int i = 0; i < t; i++) {
        scanf("%s",command);
        if (strcmp(command, "push") == 0) {
            int X;
            scanf("%d", &x);
            if(top == MAX - 1) {
                continue;
            }
            stack[++top] = x;
        }els
        
        
            
        }
    }
    
}