S = input() count = [] S = [S[i:i+5] for i in range(0,len(S),5)] for s in S: count.append(s.find("*")) print(count.count(3), count.count(1))