int n,top=1,i,o,u,h=0,y=0,p=0,q[100];
/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,i,u=5;
scanf("%d",&n);
for(i=2;i<=n;i++)
{
u=u+i*3+1;
}
printf("%d",u);
}
*/
#include <stdio.h>
#include <string.h>
char b[200][100],d[100][100],c[20][111] = {"push","top","pop","size","empty"};
int n,top=1,i,o,u,h=0,y=0,p=0,q[100];
char push(char c[])
{
q[top]=c[i];
return p;
}
int main()
{
for(i=0; i<n; i++)
{
gets(b[i]);
for(o=0; o<=strlen(b[i]); o++)
{
if(y==0)
{
d[i][o]=b[i][o];
if(b[i][o+1]=='(')
{
h=o;
y=1;
}
}
}
y=0;
for(i=0;i<5;i++)
{
for(o=0;o<strlen(c[i]);o++)
{
if(d[i][o]==c[i][o])
{
p++;
}
}
if(p==strlen(c[i]))
{
switch (i)
{
case 0:
push(c[i]);
break;
case 1:
//top();
break;
case 2:
//pop();
break;
case 3:
//size();
break;
case 4:
//empty();
break;
}
}
}
}
}