#include using namespace std; int main() { int N; cin >> N; int sum = 0; vector a(N); for (int i = 0; i < N; ++i) { cin >> a[i]; sum += a[i]; } sum /= N-1; int ans = 0; for (int i = 0; i < N; ++i) { ans += sum - a[i] == 2; } cout << ans << " " << N-ans << endl; }