#include <bits/stdc++.h>
const long long MOD = 1e9 + 7;
using namespace std;
int main() {
  long long n = 0, a[100] = {};
  long long ans = 0;
  map<long long, long long> color;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    color[a[i] / 400]++;
  }
  color[8] += (color[9] + color[10] + color[11] + color[12]);
  for (long long i = 0; i < 8; i++) {
    if (color[i] >= 1) {
      ans++;
    }
  }
  if (ans == 0) {
    ans++;
  }
  cout << ans << " " << ans + color[8] << endl;
  return 0;
}
