using C=System.Console;class P{static void Main(){for(int c,i=0;(c=C.Read())>0;i+=c==99?1:0)if(c==61)C.WriteLine(--i);}}