#define _GLIBCXX_DEBUG #include using namespace std; int main() { string S; cin >> S; int L = 0, R = 0; for(int i = 0; i < (int)S.size()/5; i++){ string T = S.substr(i*5, i*5+5); if(T[3] == '*') L++; else R++; } cout << L << " " << R << endl; }