#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long g = 0, b = 0, gr = 0, c = 0, bl = 0, y = 0, o = 0, r = 0, n, x = 0;
  cin >> n;
  vector<long long>(a)((n));
  for (long long i = 0; i < (n); ++i) {
    cin >> a[i];
    if (a[i] < 400) {
      g = 1;
    } else if (a[i] < 800) {
      b = 1;
    } else if (a[i] < 1200) {
      gr = 1;
    } else if (a[i] < 1600) {
      c = 1;
    } else if (a[i] < 2000) {
      bl = 1;
    } else if (a[i] < 2400) {
      y = 1;
    } else if (a[i] < 2800) {
      o = 1;
    } else if (a[i] < 3200) {
      r = 1;
    } else {
      x++;
    }
  }
  long long ans = g + b + gr + c + bl + y + o + r;
  long long max = 11;
  max = min(max, ans + x);
  cout << ans << " " << max << endl;
  return 0;
}
