#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() #define dunk(a) cout << (a) << endl using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector a(n); int res = 0; rep(i, n) { cin >> a[i]; res += a[i]; } res /= n - 1; int turu = 0; int kame = 0; rep(i, n) { if (res - a[i] == 4) kame++; if (res - a[i] == 2) turu++; } cout << turu << ' ' << kame << endl; return 0; }