#include <bits/stdc++.h>
using namespace std;
const long long INF = 1000000000000000000ll;
const long long MOD = 1000000007ll;
const double EPS = 1e-8;
int col[10];
int color(int r) {
  if (r >= 1 && r <= 399) {
    return 0;
  } else if (r >= 400 && r <= 799) {
    return 1;
  } else if (r >= 800 && r <= 1199) {
    return 2;
  } else if (r >= 1200 && r <= 1599) {
    return 3;
  } else if (r >= 1600 && r <= 1999) {
    return 4;
  } else if (r >= 2000 && r <= 2399) {
    return 5;
  } else if (r >= 2400 && r <= 2799) {
    return 6;
  } else if (r >= 2800 && r <= 3199) {
    return 7;
  } else {
    return 8;
  }
}
int main(void) {
  int n;
  vector<int> a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    a.push_back(t);
  }
  for (int i = 0; i < n; i++) {
    col[color(a[i])]++;
  }
  int mi = 0;
  int rem = 0;
  int ma = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] > 0) {
      mi++;
    } else {
      rem++;
    }
  }
  ma = mi;
  if (col[8] > 0 && mi == 0) {
    mi++;
  }
  if (col[8] > 0) {
    ma = mi + min(rem, col[8]);
  }
  cout << mi << ' ' << ma << endl;
  return 0;
}
