#define _USE_MATH_DEFINES #include using namespace std; #include int main() { int n,m,a; int ca=0,cb=0; cin>>a; for (int i = 0; i < a; ++i) { cin>>n; if (n==2) { ca++; }else{ cb++; } } cout<