#include <bits/stdc++.h>
using namespace std;
int r[10] = {0};
int main() {
  int n, a, mx = 0, mn = 0, cnt = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a >= 3200) ++cnt;
    for (int j = 1; j < 9; ++j) {
      if (a < j * 400) {
        r[j]++;
        break;
      }
    }
  }
  for (int i = 1; i < 9; ++i) {
    if (r[i] != 0) ++mn;
  }
  cout << (((mn) > (1)) ? (mn) : (1)) << " "
       << (((mn + cnt) < (8)) ? (mn + cnt) : (8)) << endl;
  return 0;
}
