#include <bits/stdc++.h>
using namespace std;
const long long MOD_CONST = 1000000007;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int num = a / 400;
    if (num > 8) {
      num = 8;
    }
    m[num]++;
  }
  int cnt = 0;
  for (auto it = m.begin(); it != m.end(); it++) {
    if (it->first != 8) {
      cnt++;
    }
  }
  int mi = max(cnt, 1);
  int ma = cnt + m[8];
  if (ma > 8) {
    ma = 8;
  }
  cout << mi << " " << ma << endl;
}
