#include <bits/stdc++.h>
using namespace std;
void afify() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
const long long oo = (long long)10e9 + 7;
const double EPS = 1e-4;
int main() {
  afify();
  int n;
  cin >> n;
  vector<int> st(n);
  int g = 0, b = 0, gn = 0, c = 0, b1 = 0, y = 0, o = 0, r = 0, dif = 0;
  ;
  for (int i = int(0); i < n; i++) {
    int x;
    cin >> x;
    if (x >= 1 && x <= 399) {
      g = 1;
    }
    if (x >= 400 && x <= 799) {
      b = 1;
    }
    if (x >= 800 && x <= 1199) {
      gn = 1;
    }
    if (x >= 1200 && x <= 1599) {
      c = 1;
    }
    if (x >= 1600 && x <= 1999) {
      b1 = 1;
    }
    if (x >= 2000 && x <= 2399) {
      y = 1;
    }
    if (x >= 2400 && x <= 2799) {
      o = 1;
    }
    if (x >= 2800 && x <= 3199) {
      r = 1;
    }
    if (x > 3199) {
      dif++;
    }
  }
  int z = g + b + gn + c + b1 + y + o + r;
  cout << z << " " << z + dif;
  return 0;
}
