/*#include <stdio.h>
#include <stdlib.h>
#define MAX_STACK_SIZE 50000
char arr[50000],stack[MAX_STACK_SIZE];
int Count=0;
void count(char n)
{
stack[Count++]=n;
}
int discount()
{
--Count;
stack[Count] = 0;
}
int main()
{
int i;
scanf("%s",arr);
for(i=0; i<strlen(arr); i++)
{
if(arr[i]=='(')
{
count(arr[i]);
}
else if(arr[i]==')' && Count!=0)
{
discount();
}
else if(arr[i]==')' && Count==0)
{
printf("bad");
return 0;
}
}
if(Count==0)
{
printf("good");
}
else
{
printf("bad");
}
return 0;
}
*/
/*
#include<stdio.h>
#define MAXSIZE 5
int stack[MAXSIZE];
int top = 0;
void push(int k) {
if(top==MAXSIZE) {
printf("stack if Full\n");
return;
}
stack[top] = k;
top++;
}
void pop() {
if(top==0) {
printf("stack is Empty\n");
return;
}
top--;
printf("Pop data is %d\n", stack[top]);
stack[top] = 0;
}
void show() {
for(int i=0; i<MAXSIZE; i++) {
printf("%d: %d\n", i, stack[i]);
}
}
int main() {
int n, k, y, a, i, j;
for(;;) {
printf("choice your pick: ");
scanf("%d", &n);
switch(n) {
case 1:
printf("type your number: ");
scanf("%d", &k);
push(k);
break;
case 2:
pop();
break;
case 3:
show();
break;
default:
printf("input error\n");
break;
}
}
}
*/
/*
#include<stdio.h>
int main() {
char input[10000] = {0};
gets(input);
printf("%s", input);
for(int i=0; i<strlen(input); i++) {
if(input[i] == ' ') {
printf("\n");
}
else {
printf("%c", input[i]);
}
}
}
*/
#include<stdio.h>
#define MAXSIZE 100
int stack[MAXSIZE];
int top = 0;
void push(int n)
{
stack[top]=n;
top++;
}
void pop(){
top--;
stack[top] = 0;
}
int main(){
char arr[201];
gets(arr);
top = 0;
for(i=0;i<strlen(arr);i++) {
}
}