#include #include #include #include #include #include #include #include using namespace std; int main(void){ string S; cin >> S; int cntl = 0, cntr = 0; for(int i = 0; i < S.size(); i++){ if(i % 5 == 1 && S[i] == '*'){ cntl++; }else if(i % 5 == 3 && S[i] == '*'){ cntr++; } } cout << cntr << " " << cntl << endl; return 0; }