#include <bits/stdc++.h>
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
using namespace std;
int POW(int x, int y) { return int(pow(double(x), double(y))); }
double log(double a, double b) { return log(b) / log(a); }
int main() {
  int n, s = 0;
  cin >> n;
  vector<int> x(8);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      s++;
    } else {
      x[a / 400]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (x[i] > 0) {
      ans++;
    }
  }
  cout << ans << " " << ans + s << endl;
  return 0;
}
