//g++ 5.cpp -std=c++14 -O2 -I . #include using namespace std; #include using namespace atcoder; using ll = long long; using ld = long double; using vi = vector; using vvi = vector; using vll = vector; using vvll = vector; using vld = vector; using vvld = vector; #define fi first #define se second #define pb push_back #define pq_big(T) priority_queue,less> #define pq_small(T) priority_queue,greater> #define all(a) a.begin(),a.end() #define rep(i,start,end) for(ll i=start;i<(ll)(end);i++) #define per(i,start,end) for(ll i=start;i>=(ll)(end);i--) using mint = modint998244353; //n!! mint fac(int n){ if(n<=0){ return 1; } mint res=1; return res*n*fac(n-2); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); mint rr=0,bb=0,rb=0; int n; string s; cin>>n>>s; int r=0,b=0; rep(i,0,2*n){ if(s[i]=='R'){ r++; } else{ b++; } } if(r%2==1){ cout<<0<