s = input().replace('-' , '') print(len(s)//3)