/*#include <stdio.h>
int top=0; // '('의 개수
int main()
{
int a,n,i;
char str[50001]={0};
scanf("%s",str);
for(int i=0;str[i]!=0;i++)
{
if( str[i] == '(')
{
top++;
}
else
{
if(top==0)
{
printf("bad");
return 0;
}
top--;
}
}
if(top==0)
{
printf("good");
}
else
{
printf("bad");
}
return 0;
}
/*
()
(())
1210
) ( ) ( ((())()()()()()()())
-1
(()))())()()()()))
*/
/*#include <stdio.h>
#include <string.h>
int main()
{
char str[101];
int i,c;
gets(str);
for(i=0;str[i]!=NULL;i++)
{
if(str[i]!=',')
{
printf("%c",str[i]);
}
else
{
printf(" ");
}
}
printf(" ");
return 0;
}*/