/*
#include <stdio.h>
#include <string.h>
int s[100000] = {};
int top = -1;
int push(int a)
{
top++;
s[top] = a;
}
void pop()
{
if(top != -1)
{
top--;
}
}
int main()
{
char a[110] = {}, b[110] = {};
gets(a);
gets(b);
int A=strlen(a)-1, B=strlen(b)-1;
while(A>=0 || B>=0)
{
int sum=0;
if(A>=0)
{
sum=sum+a[A]-48;
}
if(B>=0)
{
sum=sum+b[B]-48;
}
A--;
B--;
if(top!=-1 && s[top]>=10)
{
s[top]=s[top]-10;
sum=sum+1;
}
push(sum);
}
while(top>-1): 스택의 top 포인터가 가리키는 값을 출력한다. 만약 원소가 없다면 -1을 출력한다.
pop() : 스택의 마지막에 들어온 원소를 삭제한다.
size() : 스택안의 원소 개수를 출력한다.
empty() : 스택이 비어있으면 true, 비어 있지 않으면 false 를 출력한다.
입력
첫째줄에
N
이 입력된다.(
1
<=
N
<=
200
)
printf("%d", s[top]);
pop();
}
return 0;
}
*/
#include <stdio.h>
#include <string.h>
int s[100000]={}
int push(int a)
{
top++;
s[top]=a;
}
void pop()
{
if(top!=-1)
{
top--;
}
}
int main()
{
int a;
char arr[101010];
scanf("%d", &a);
for(int i=1;i<=a;i++)
{
scanf("%s", arr);
if(arr[1]=='u')
{
}
}
return 0;
}



