#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9, MOD = 1e9 + 7;
const long long LINF = 1e18;
long long int n, cnt = 0, ans = 0, a[10000000], b, c, cmp, cmpp, m, h, w, x, y,
                 sum = 0, pos;
int dy[] = {1, 0, -1, 0};
int dx[] = {0, 1, 0, -1};
string alph("abcdefghijklmnopqrstuvwxyz"), s;
bool fl = true;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> n;
  int x = 0, xx = 0, xxx = 0, xxxx = 0, xxxxx = 0, xxxxxx = 0, xxxxxxx = 0,
      xxxxxxxx = 0, xxxxxxxxx = 0;
  for (long long int(i) = 0; (i) < (int)(n); (i)++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) {
      xx = 1;
      cnt++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      xxx = 1;
      cnt++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      xxxx = 1;
      cnt++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      xxxxx = 1;
      cnt++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      xxxxxx = 1;
      cnt++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      xxxxxxx = 1;
      cnt++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      xxxxxxxx = 1;
      cnt++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      xxxxxxxxx = 1;
      cnt++;
    } else {
      cnt++;
    }
  }
  pos = xx + xxx + xxxx + xxxxx + xxxxxx + xxxxxxx + xxxxxxxx + xxxxxxxxx;
  cout << pos << " " << cnt << endl;
  return 0;
}
