#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
const array<pair<int, int>, 4> fd{make_pair(1, 0), make_pair(-1, 0),
                                  make_pair(0, 1), make_pair(0, -1)};
int main() {
  int n, c[9];
  for (int i = (0); i < (9); i++) c[i] = 0;
  cin >> n;
  int a;
  for (int i = (0); i < (n); i++) {
    cin >> a;
    int b = 0;
    a -= 400;
    while (a >= 0) {
      a -= 400;
      b++;
    }
    if (b > 8) b = 8;
    c[b]++;
  }
  int ans = 0;
  for (int i = (0); i < (8); i++) ans += int((bool)c[i]);
  cout << ans << " " << ans + c[8] << endl;
}
