#include using namespace std; using uint = unsigned int; using ll = long long; using ull = unsigned long long; template using V = vector; template using VV = V>; template using VVV = V>; template using VVVV = VV>; #define rep(i,n) for(ll i=0ll;i bool chmin(T& t, const U& u) { if (t > u){ t = u; return 1;} return 0; } template bool chmax(T& t, const U& u) { if (t < u){ t = u; return 1;} return 0; } // cin.tie(nullptr); // ios::sync_with_stdio(false); // cout << fixed << setprecision(20); void solve(){ ll n,m; string s; cin >> n >> m >> s; ll wc = 0, ac = 0; string ans = "Yes"; all(c, s){ if(c == 'W') wc++; if(c == 'C'){ if(ac){ ac--; m--; }else ans = "No"; } if(c == 'A'){ if(m) ac++; else if(wc) wc--; else ans = "No"; } } cout << ans << endl; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int t=1; // cin >> t; rep(i,t) solve(); }