arr=['c=','c-','dz=','d-','lj','nj','s=','c=','z=']
i=str(input())
for x in arr:
i=i.replace(x,'1')
print(len(i))
'알고리즘 > 백준' 카테고리의 다른 글
백준-3009번(네 번째 점)-python3 (0) | 2023.11.26 |
---|---|
백준-3003번(킹, 퀸, 룩, 비숍, 나이트, 폰)-python3 (0) | 2023.11.26 |
백준-2935번(소음)-python3 (0) | 2023.11.26 |
백준-2914번(저작권)-python3 (0) | 2023.11.26 |
백준-2908번(상수)-python3 (0) | 2023.11.26 |