#include <iostream>
#include<string>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int r=0,g=0,b=0;
string s;
cin>>s;
for(char c:s){
if(c=='R')r++;
if(c=='G')g++;
if(c=='B')b++;
}
cout<<"("<<r<<","<<g<<","<<b<<")\n";
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号