#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < (N); i++) cin >> a[i];
  vector<bool> color(8, false);
  int crown = 0;
  for (int i = 0; i < (N); i++) {
    int tmp = a[i] / 400;
    if (tmp >= 8) crown++;
    color[tmp] = true;
  }
  int num = 0;
  for (int i = 0; i < (8); i++) {
    if (color[i]) num++;
  }
  cout << num << " " << min(num + crown, 8) << endl;
  return 0;
}
