#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using ld = long double;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; (i) < (n); ++(i)) cin >> a[i];
  for (int i = 0; (i) < (n); ++(i)) a[i] /= 400;
  vector<int> color(9, 0);
  for (int i = 0; (i) < (n); ++(i)) {
    if (a[i] < 8) {
      color[a[i]] = 1;
    } else if (a[i] >= 8) {
      color[8] += 1;
    }
  }
  int ans = 0;
  for (int i = 0; (i) < (8); ++(i)) {
    ans += color[i];
  }
  int min_ans = 0, max_ans = 0;
  if (ans == 0) {
    min_ans = 1;
  } else {
    min_ans = ans;
  }
  if (ans + color[8] <= 8) {
    max_ans = ans + color[8];
  } else {
    max_ans = 8;
  }
  cout << min_ans << " " << max_ans << endl;
}
