#include "bits/stdc++.h" using namespace std; void Solve() { char S[1000010]; cin >> S; int L = 0,R = 0; for(int i = 1 ; S[i] > 0; i += 5) { if(S[i] == '*') R++; else L++; } cout << L << ' ' << R << endl; } int main(void){ ios::sync_with_stdio(0); cin.tie(0); Solve(); return 0; }