#include #include #include #include using namespace std; using namespace atcoder; using namespace __gnu_pbds; using ll=long long; using ld=long double; using vll=vector; using vvll=vector; using pll=pair; // using mint=modint; // template // using ordered_map=tree,rb_tree_tag,tree_order_statistics_node_update>; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll G,C,P; string S; cin>>G>>C>>P>>S; ll N=G+C+P; vvll dp(G+1,vector(C+1,-1)); dp[0][0]=0; for(int i=0;i(C+1,-1)); for(int g=0;g<=G;++g){ for(int c=0;c<=C;++c){ //押すdpの方は楽 if(dp[g][c]==-1)continue; ll p=i-g-c; if(g