#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, ans = 0, ans2 = 0, d;
  cin >> n;
  vector<long long> a(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> d;
    if (d >= 3200) {
      a[8]++;
    } else {
      a[d / 400]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      ans++;
    }
  }
  if (a[8] > 0) {
    if (a[8] < 8 - ans) {
      ans2 = ans + a[8];
    } else {
      ans2 = 8;
    }
    if (ans == 0) {
      ans++;
    }
  } else {
    ans2 = ans;
  }
  cout << ans << " " << ans2 << endl;
  return 0;
}
