#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> a(4801, 0);
  cin >> n;
  int tmp;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    a[tmp]++;
  }
  int ans = 0;
  int ans2 = 0;
  for (int i = 1; i <= 399; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 400; i <= 799; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 800; i <= 1199; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 1200; i <= 1599; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 1600; i <= 1999; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 2000; i <= 2399; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 2400; i <= 2799; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 2800; i <= 3199; i++) {
    if (a[i]) {
      ans++;
      break;
    }
  }
  for (int i = 3200; i <= 4800; i++) {
    ans2 += a[i];
  }
  cout << ans << " " << ans + ans2 << endl;
  return 0;
}
