s=input() #print(s) c=s.count("c") w=s.count("w") #print(c,w) #cccwwwwww if c-1