#include <bits/stdc++.h>
using namespace std;
bool compare_by_b(pair<string, int64_t> a, pair<string, int64_t> b) {
  if (a.second != b.second)
    return a.second < b.second;
  else
    return a.first < b.first;
}
bool my_compare(pair<string, int64_t> a, pair<string, int64_t> b) {
  if (a.first != b.first) return a.first < b.first;
  if (a.second != b.second)
    return a.second > b.second;
  else
    return true;
}
int main() {
  int64_t n, free = 0, d[10];
  for (int64_t i = 0; i < 10; i++) d[i] = 0;
  cin >> n;
  vector<int64_t> a(n);
  for (int64_t i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= 399)
      d[0]++;
    else if (a[i] >= 400 && a[i] <= 799)
      d[1]++;
    else if (a[i] >= 800 && a[i] <= 1199)
      d[2]++;
    else if (a[i] >= 1200 && a[i] <= 1599)
      d[3]++;
    else if (a[i] >= 1600 && a[i] <= 1999)
      d[4]++;
    else if (a[i] >= 2000 && a[i] <= 2399)
      d[5]++;
    else if (a[i] >= 2400 && a[i] <= 2799)
      d[6]++;
    else if (a[i] >= 2800 && a[i] <= 3199)
      d[7]++;
    else
      free++;
  }
  int64_t sum = 0;
  for (int64_t i = 0; i < n; i++)
    if (d[i] >= 1) sum++;
  cout << (sum >= 1 ? sum : 1) << " " << sum + free << endl;
  return 0;
}
