#include using namespace std; #define FOR(i,a,b) for(auto i=a;i; using vvi=vector; using pii=pair; int main(){ ios::sync_with_stdio(false);cout.tie(0);cin.tie(0); for(;;) { ll n;cin>>n; if(!cin)break; char t; cin>>t; if(t=='B' || t=='R') cout<=2) cout<<4<