#include using namespace std; int main(){ int n; cin >> n; vector data(n); for(auto &a:data) cin >> a; sort(data.begin(),data.end()); int check1 = 1; int i; for(i = 1; i < n; i++){ if(data[0] == data[i]) check1++; else break; } int check2 = n - check1; if(!check2){ if(data[0] / (n - 1) == 2){ cout << check1 << " " << check2 << endl; }else{ cout << check2 << " " << check1 << endl; } return 0; } cout << min(check1,check2) << " " << max(check1,check2) << endl; /* int total = check1*2 + check2*4; if((data[0]+2 == total || data[0]+4 == total) and (data[0] != total and data[i] != total) ){ cout << check1 << " " << check2 << endl; }else{ cout << check2 << " " << check1 << endl; } */ return 0; }