#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int color[9] = {};
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) {
      color[8]++;
    } else {
      color[a] = 1;
    }
  }
  int ans_M = 0, ans_m = 0;
  for (int i = 0; i < 9; i++) {
    ans_M += color[i];
    ans_m += (color[i] > 0);
  }
  cout << ans_m << " " << ans_M << endl;
  return 0;
}
