import strutils var s:string = readLine(stdin) echo count(s, "*)"), " ", count(s, "(*")