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