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