#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt[9] = {};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int now = 0;
    for (int i = 0; i < 9; i++) {
      if (a >= now && a < now + 400) {
        cnt[i]++;
        break;
      }
      now += 400;
      if (i == 8) cnt[8]++;
    }
  }
  int colornum = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) colornum++;
  }
  cout << max(colornum, 1) << " " << min(8, colornum + cnt[8]) << endl;
  return 0;
}
