#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int f(vector<int> r, int a) {
  for (int i = 0; i < (int)(r.size()); i++)
    if (a < r[i]) return i;
  return -1;
}
int main() {
  vector<int> rates{400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 5000};
  int N;
  int a[102];
  cin >> N;
  for (int i = 0; i < (int)(N); i++) cin >> a[i];
  vector<int> cnt(rates.size());
  for (int i = 0; i < (int)(N); i++) {
    int idx = f(rates, a[i]);
    cnt[idx]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(cnt.size() - 1); i++) ans += cnt[i] > 0;
  cout << ans << " " << ans + cnt.back() << endl;
  return 0;
}
