#include <bits/stdc++.h>
using namespace std;
bool a[8];
long long N;
long long cnt = 0;
long long z = 0;
int main() {
  cin >> N;
  long long x;
  for (long long i = 0; i < N; i++) {
    cin >> x;
    x = x / (400LL);
    if (x >= 8) {
      z++;
      continue;
    } else if (!a[x]) {
      a[x] = 1;
      cnt++;
    }
  }
  cout << max(cnt, 1LL) << " " << min(cnt + z, 8LL) << endl;
}
