#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ld = long double;
using P = pair<int, int>;
using vs = vector<string>;
using vi = vector<int>;
using vvi = vector<vi>;
const int INF = 100010001;
const ll LINF = (ll)INF * INF * 10;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vi color(9);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a >= 3200) {
      color[8]++;
    } else {
      color[a / 400]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    cnt += color[i] != 0;
  }
  cout << cnt << ' ' << cnt + color[8] << endl;
}
