#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) {
  if (y == 0) return x;
  return gcd(y, x % y);
}
long long lcm(long long x, long long y) { return x * y / gcd(x, y); }
int n, a[101];
int main() {
  cin >> n;
  int c = 0;
  bool b[8] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      c++;
    else if (a[i] >= 2800)
      b[7] = 1;
    else if (a[i] >= 2400)
      b[6] = 1;
    else if (a[i] >= 2000)
      b[5] = 1;
    else if (a[i] >= 1600)
      b[4] = 1;
    else if (a[i] >= 1200)
      b[3] = 1;
    else if (a[i] >= 800)
      b[2] = 1;
    else if (a[i] >= 400)
      b[1] = 1;
    else
      b[0] = 1;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) ans++;
  }
  cout << ans << " " << ans + c << endl;
  return 0;
}
