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