s=input() n=len(s) l=0 for i in range(3, n, 5): if s[i]=='*': l += 1 print(l, (n-1)//5 - l)