#include<bits/stdc++.h>
using namespace std;
int a,b;
string s[1000005];
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
for(int i=1; i<=100; i++) {
cin>>s[i];
}
for(int i=1; i<=100; i++) {
if(s[i]=='R') a++;
if(s[i]=='G') b++;
if(a>b) cout<<b;
else cout<<a;
}
return 0;
}
我是新手,很笨的,帮帮我吧,不要嘲笑我