#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  vector<bool> f(9);
  int any = 0;
  for (int i = 0; i < int(N); ++i) {
    cin >> a[i];
    if (a[i] >= 3200)
      any++;
    else {
      for (int j = 0; j < int(8); ++j) {
        if (j * 400 <= a[i] && a[i] < (j + 1) * 400) {
          f[j] = true;
          break;
        }
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i < int(8); ++i) {
    if (f[i]) cnt++;
  }
  int ansmin = max(cnt, 1);
  int ansmax = min(8, cnt + any);
  ansmax = min(N, ansmax);
  cout << ansmin << ' ' << ansmax << endl;
}
