#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { string s; cin >> s; int c[5] = {}; REP(i, s.length()) { if (s[i] == '*') c[i % 5]++; } cout << c[3] << " " << c[1] << endl; return 0; }