S = str(input()) a = len(S) b = a-1 c = b/5 right = 0 left = 0 for i in range(b): d = S[5*i+4] if d == '*': left += 1 else: right += 1 print(left + ' ' + right)