s = input().split(")") count = 0 for i in s: if i[-1] == "*": count += 1 print(count, len(s)-1-count)