#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  bool flg[9];
  int ans1 = 0, ans2 = 0, cnt = 0;
  for (int i = 0; i < 9; i++) flg[i] = false;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= 399)
      flg[0] = true;
    else if (a[i] <= 799)
      flg[1] = true;
    else if (a[i] <= 1199)
      flg[2] = true;
    else if (a[i] <= 1599)
      flg[3] = true;
    else if (a[i] <= 1999)
      flg[4] = true;
    else if (a[i] <= 2399)
      flg[5] = true;
    else if (a[i] <= 2799)
      flg[6] = true;
    else if (a[i] <= 3199)
      flg[7] = true;
    else {
      flg[8] = true;
      cnt++;
    }
  }
  for (int i = 0; i <= 7; i++) {
    if (flg[i]) {
      ans1++;
      ans2++;
    }
  }
  if (flg[8]) {
    ans1 += max(0, cnt - ans1);
    ans2 += cnt;
  }
  cout << ans1 << " " << ans2 << endl;
}
