#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rating;
  bool name[8];
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> rating;
    if (rating < 400)
      name[0] = true;
    else if (rating < 800)
      name[1] = true;
    else if (rating < 1200)
      name[2] = true;
    else if (rating < 1600)
      name[3] = true;
    else if (rating < 2000)
      name[4] = true;
    else if (rating < 2400)
      name[5] = true;
    else if (rating < 2800)
      name[6] = true;
    else if (rating < 3200)
      name[7] = true;
    else
      ++cnt;
  }
  int minN = name[0] + name[1] + name[2] + name[3] + name[4] + name[5] +
             name[6] + name[7];
  int maxN = min(8, minN + cnt);
  cout << minN << " " << maxN << endl;
  return 0;
}
