https://www.acmicpc.net/problem/2941
ap=['c=','c-','dz=','d-','lj','nj','s=','z='] a=input() for i in ap: a=a.replace(i,'c') print(len(a))