for(v=0;l=readline();)for(i=2;i--;m&&print(v+=m.length))m=l.match('_-'[i],'g')