#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int flag[9] = {};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a = min(a / 400, 8);
    flag[a]++;
  }
  int mi = 0, ma;
  for (int i = 0; i < 8; i++) {
    if (flag[i] != 0) mi++;
  }
  ma = min(8, mi + flag[8]);
  if (mi == 0) {
    mi = 1;
  }
  cout << mi << ' ' << ma << endl;
  return 0;
}
