#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n), flag(8, 0);
  int cnt = 0;
  for (int(i) = (0); (i) < (int)(n); (i)++) {
    cin >> a[i];
    if (a[i] <= 399)
      flag[0] = 1;
    else if (a[i] <= 799)
      flag[1] = 1;
    else if (a[i] <= 1199)
      flag[2] = 1;
    else if (a[i] <= 1599)
      flag[3] = 1;
    else if (a[i] <= 1999)
      flag[4] = 1;
    else if (a[i] <= 2399)
      flag[5] = 1;
    else if (a[i] <= 2799)
      flag[6] = 1;
    else if (a[i] <= 3199)
      flag[7] = 1;
    else
      cnt++;
  }
  int tot = accumulate(flag.begin(), flag.end(), 0);
  if (tot == 0) tot = 1, cnt--;
  cout << tot << " " << tot + min(8 - tot, cnt) << endl;
  return 0;
}
