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