#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5 + 7;
const long long inf = (long long)1e16 + 7;
int main() {
  int n, a[1111], x = 0, mn = 1111, mx = 0;
  cin >> n;
  for (int i = 0; i < (int)(n); ++i) cin >> a[i];
  sort(a, a + n);
  int y = 400, z = 1, c = 0;
  for (int i = 0; i < (int)(n); ++i) {
    if (a[i] >= 3200) {
      x++;
      continue;
    }
    if (a[i] < y)
      continue;
    else {
      while (a[i] >= y) y += 400;
      if (y >= 3200) {
        x++;
        continue;
      }
      c++;
    }
  }
  cout << c << " " << min(c + x, 8) << endl;
  return 0;
}
