#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<bool> flg(8, false);
  int all_num = 0;
  for (int i = 0; i < (n); ++i) {
    int tmp_num = 0;
    cin >> tmp_num;
    if (tmp_num <= 399)
      flg[0] = true;
    else if (tmp_num <= 799)
      flg[1] = true;
    else if (tmp_num <= 1199)
      flg[2] = true;
    else if (tmp_num <= 1599)
      flg[3] = true;
    else if (tmp_num <= 1999)
      flg[4] = true;
    else if (tmp_num <= 2399)
      flg[5] = true;
    else if (tmp_num <= 2799)
      flg[6] = true;
    else if (tmp_num <= 3199)
      flg[7] = true;
    else
      ++all_num;
  }
  int cnt = 0;
  for (int i = 0; i < (8); ++i) {
    if (flg[i]) ++cnt;
  }
  if (all_num == 0)
    cout << cnt << " " << cnt << endl;
  else
    cout << cnt << " " << min(8, cnt + all_num) << endl;
  return 0;
}
