#include <bits/stdc++.h>
using namespace std;
int main(void) {
  vector<int> V = {0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4801};
  vector<int> Color = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  int n;
  cin >> n;
  int x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    for (int j = 0; j < 9; j++) {
      if (V[j] <= x && x < V[j + 1]) {
        Color[j]++;
      }
    }
  }
  int count = Color[8];
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (Color[i] != 0) ans++;
  }
  cout << ans << ' ' << count + ans << endl;
}
