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