S = raw_input() left = 0 right = 0 for i in range(0, len(S)): if S[i] == '*': if i%5 == 3: left += 1 elif i%5 == 1: right += 1 print str(left) + ' ' + str(right)