s = input() s = s.replace("-", "", 100) ans = len(s) // 3 print(ans)