#include #include #include #include #include #include #include #include #include using namespace std; int main(){ int N; cin >> N; vector a(N); int sum = 0; for(int i=0; i> a[i]; sum += a[i]; } sort(a.begin(), a.end()); int x = upper_bound(a.begin(), a.end(), a[0]) - a.begin(); //tsuru int y = N-x; //kame if(x==N){ if(sum/x == 4){ y = x; x = 0; } } cout << y << " " << x << endl; return 0; }