#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  const int C = 8;
  int N;
  cin >> N;
  vector<int> a(C + 1);
  for (int i = 0; i < N; ++i) {
    int r;
    cin >> r;
    r /= 400;
    a[r < C ? r : C] += 1;
  }
  int cl = 0;
  for (int i = 0; i < C; ++i) {
    cl += a[i] > 0;
  }
  int x = max<int>(cl, a[C] > 0);
  int y = min<int>(cl + a[C], C);
  cout << x << ' ' << y << endl;
  return 0;
}
