#include #include using namespace std; int main(){ string St; cin>>St; unsigned int x=0,y=0,right=0,left=0; while(x==0){ if(St[y]=='('){ y++; }else if(St[y]=='#'){ x=1; }else if(St[y]=='^'){ right++; y+=4; }else if(St[y]=='*'){ left++; y+=4; } } cout<