#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> m;
  for (int i = 0; i <= 100; i++) {
    m[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    m[tmp / 400] += 1;
  }
  int ans = 0;
  int free = 0;
  for (auto x : m) {
    if (x.first >= 8) {
      if (x.second > 0) free += x.second;
    } else {
      if (x.second > 0) ans++;
    }
  }
  int min_val;
  int max_val;
  if (ans == 0 && free > 0) {
    min_val = 1;
    max_val = min(free, 8);
  } else if (free == 0) {
    min_val = ans;
    max_val = ans;
  } else {
    min_val = ans;
    max_val = min(ans + free, 8);
  }
  cout << min_val << " " << max_val << endl;
}
