#include inline long nextInt(void) { long temp; std::cin >> temp; return temp; } int main() { int N; std::vector v; int total = 0; int ans1 = 0; int ans2 = 0; std::cin >> N; for(int i = 0; i < N; ++i) { v.push_back( nextInt() ); } for(int i = 0; i < N; ++i) { total += v[i]; } total /= N-1; for(int i = 0; i < N; ++i) { if( total - v[i] == 2 ) ++ans1; else ++ans2; } std::cout << ans1 << " " << ans2 << std::endl; return 0; }