s = input()[:-1] left = 0 right = 0 for i in range(0,len(s),5): v = s[i:i+5] if v[1]=="*": right += 1 else: left +=1 print(left,right)