#include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i>n>>m; string s; cin>>s; int ct=0; for(char c:s){ if(c=='A') ct++; if(c=='C') ct--; if(ct<0){ cout<<"No"<