#include <iostream>
#include <map>
using namespace std;

int main() {
	int N; cin >> N;
	map<int, int> m;
	for (int i = 0; i < N; i++) {
		int a; cin >> a;
		m[a]++;
	}
	if (m.size() == 1) {
		int leg = m.begin()->first;
		if (leg / (N - 1) == 2)
			cout << N << ' ' << 0 << endl;
		else
			cout << 0 << ' ' << N << endl;
	}
	else {
		int kame = m.begin()->second;
		cout << N - kame << ' ' << kame << endl;
	}
}