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