#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int Color(int r) {
  if (r < 400)
    return 0;
  else if (r < 800)
    return 1;
  else if (r < 1200)
    return 2;
  else if (r < 1600)
    return 3;
  else if (r < 2000)
    return 4;
  else if (r < 2400)
    return 5;
  else if (r < 2800)
    return 6;
  else if (r < 3200)
    return 7;
  else
    return 8;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  array<int, 9> c;
  fill(c.begin(), c.end(), 0);
  for (int i = 0, a; i < n; ++i) {
    cin >> a;
    ++c[Color(a)];
  }
  int cnt = count_if(c.begin(), c.end() - 1, [](int x) { return 0 < x; });
  cout << cnt << " " << cnt << endl;
  return 0;
}
