c=0 while 1: for d in map(raw_input().count,'-_'): if d:c+=d;print c