//time //washing_machine61 //No.112 ややこしい鶴亀算 #include using namespace std; int main(){ int N, x; int kame = 0; int turu = 0; cin >> N; for (int i = 0; i < N; i++){ cin >> x; if (x == 2){ turu++; } else{ kame++; } } cout << turu << " " << kame << '\n'; }