#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int N; cin >> N; vector a(N); int s = 0; rep(i,N){ cin >> a[i]; s += a[i]; } s /= N - 1; int crane = 0, turtle = 0; rep(i,N){ if(s - a[i] == 4) turtle++; else crane++; } cout << crane << " " << turtle << endl; }