#include using namespace std; using ll=long long; #include using namespace atcoder; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,A,B; cin>>N>>A>>B; vector P(N); for(int i=0;i>P[i]; if(P[i]==1)A--; else if(P[i]==2)B--; else{ A--;B--; } if(min(A,B)<0){ cout<