#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int R[] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int n, r, dif = 0;
  cin >> n;
  bitset<8> mark;
  while (n--) {
    cin >> r;
    int i = upper_bound(R, R + 9, r) - R - 1;
    if (i < 8)
      mark[i] = 1;
    else
      dif++;
  }
  int cnt = mark.count();
  int mn = min(cnt, dif);
  mn = cnt + dif - mn;
  cout << mn << " " << cnt + dif << '\n';
}
