#include #include #include #include #include using namespace std; typedef long long lint; #define MIN(a,b) ((a)<(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b)) int main() { int l = 0, r = 0; string S; cin >> S; for (int i = 0; S[i] != '#'; i += 5) { if (S[i + 3] == '*') l++; else r++; } cout << l << " " << r << endl; return 0; }