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