#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = LLONG_MAX;
long long a[110];
bool isc[10];
long long cnt, ret;
signed main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    if (a[i] <= 399)
      isc[0] = true;
    else if (a[i] <= 799)
      isc[1] = true;
    else if (a[i] <= 1199)
      isc[2] = true;
    else if (a[i] <= 1599)
      isc[3] = true;
    else if (a[i] <= 1999)
      isc[4] = true;
    else if (a[i] <= 2399)
      isc[5] = true;
    else if (a[i] <= 2799)
      isc[6] = true;
    else if (a[i] <= 3199)
      isc[7] = true;
    else
      cnt++;
  }
  for (long long i = 0; i < 10; i++) {
    if (isc[i]) ret++;
  }
  cout << ret << " " << ret + cnt << endl;
}
