#include <bits/stdc++.h>
using namespace std;
bool value(int y, int x, int R, int C) {
  return 0 <= y && y < R && 0 <= x && x < C;
}
double pie = acos(-1);
int INF = 1000000007;
int dx[4] = {0, -1, 0, 1};
int dy[4] = {-1, 0, 1, 0};
int main() {
  int n;
  int a[5000];
  int ans, x[9];
  ans = 0;
  for (int i = 0; i < 9; i++) {
    x[i] = 0;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400) {
      x[0]++;
    } else if (a[i] >= 400 && a[i] < 800) {
      x[1]++;
    } else if (a[i] >= 800 && a[i] < 1200) {
      x[2]++;
    } else if (a[i] >= 1200 && a[i] < 1600) {
      x[3]++;
    } else if (a[i] >= 1600 && a[i] < 2000) {
      x[4]++;
    } else if (a[i] >= 2000 && a[i] < 2400) {
      x[5]++;
    } else if (a[i] >= 2400 && a[i] < 2800) {
      x[6]++;
    } else if (a[i] >= 2800 && a[i] < 3200) {
      x[7]++;
    } else if (a[i] >= 3200) {
      x[8]++;
    }
  }
  for (int i = 0; i < 9; i++) {
    if (x[i] > 0 && i < 8) {
      ans++;
    }
  }
  cout << ans << " " << ans + x[8] << endl;
}
