S = input() left = 0 right = 0 while len(S) >= 2 : T = S[:5] S = S[5:] if T[1] == "*" : right += 1 else : left += 1 print(left,right)