#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, tmp, ans = 0;
  cin >> N;
  vector<int> a(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    tmp /= 400;
    if (tmp >= 8)
      a[8]++;
    else
      a[tmp]++;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] >= 1) ans++;
  }
  cout << max(ans, 1) << " " << min(ans + a[8], 8) << endl;
}
