/*
#include <stdio.h>
#include <string.h>
char a[101];
char b[101];
int top=-1;
int stack[102]={};
void push(int data)
{
stack[++top]=data;
}
void f()
{
while(top!=-1)
{
printf("%d",stack[top]);
top--;
}
}
int main()
{
int i,sum=0;
int x,y;
int q,w,c=0;
scanf("%s %s",a,b);
x = strlen(a)-1;
y = strlen(b)-1;
while(x!=-1 || y!=-1)
{
q=w=0;
if(x!=-1)q=a[x--]-'0';
if(y!=-1)w=b[y--]-'0';
sum=q+w+c;
push(sum%10);
c = sum/10;
}
if(c==1) push(1);
f();
return 0;
}
*/
#include <stdio.h>
int top=0;
int main()
{
char Arr[100000];
int i,cnt=0,sum=0;
scanf("%s",Arr);
for(i=0;Arr[i]!=0;i++)
{
if(Arr[i]=='(')
{
if(Arr[i+1]!=')')
{
top++;
}
}
else
}
return 0;
}