#include<bits/stdc++.h> using namespace std; char ch; int a1,b1,a2[1000005],b2[1000005],cnt = 1; int main() { cin>>ch; int x = 0 , y = 0; while (ch != 'E') { if (ch == 'W') a1 ++ , x ++; else b1 ++ , y ++; if ((a1>=11 || b1 >= 11) && abs(a1-b1) >= 2) cout<<a1<<':'<<b1<<endl , a1 = 0 , b1 = 0; if ((x >= 21 || y >= 21) && abs(x-y) >= 2) a2[cnt] = x , b2[cnt] = y , cnt ++ , x = 0 , y = 0; cin>>ch; } cout<<a1<<':'<<b1<<endl; cout<<endl; int j = cnt - 1; for (int i = 1 ; i <= j ; i ++) printf("%d:%d ",a2[i],b2[i]); printf("%d:%d ",x,y); return 0; }