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