s=-1 for x in raw_input().split(" "): if x=="=": print s s-=2 s+=1