#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
string s;
cin>>s;
int t1=0;
int t2=0;
int t3=0;
for(int i=0;i<s.size();i++){
if(s[i]=='R'){
t1++;
}else if(s[i]=='G'){
t2++;
}else if(s[i]=='B'){
t3++;
}
}
cout<<"("<<t1<<","<<t2<<","<<t3<<")";
return 0;
}

京公网安备 11010502036488号