alphabet = ["c=","c-","dz=","d-","lj","nj","s=","z="] s = input() for c in alphabet: s = s.replace(c,'!') print(len(s))