#include<bits/stdc++.h>
using namespace std;
struct stack{
int stk[100001],top=0;
void push(int x){
top++;
stk[top]=x;
return;
}void pop(){
top--;
return;
}int top(){
return stk[top];
}int size(){
return top;
}
};
struct queue{
int que[1000003];
int head=1,tail=0;
void push(int x){
tail++;
que[tail]=x;
}void pop(){
head++;
}int head(){
return que[head];
}int size(){
return tail-head+1;
}bool empty(){
return head>tail;
}
signed main(){
return 0;
}