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