#include <bits/stdc++.h>
using namespace std;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
struct S {
  int a, b, c;
};
bool asc(const S& left, const S& right) { return left.c > right.c; }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N), color(8, 0);
  int r = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] < 400)
      color[0]++;
    else if (a[i] < 800)
      color[1]++;
    else if (a[i] < 1200)
      color[2]++;
    else if (a[i] < 1600)
      color[3]++;
    else if (a[i] < 2000)
      color[4]++;
    else if (a[i] < 2400)
      color[5]++;
    else if (a[i] < 2800)
      color[6]++;
    else if (a[i] < 3200)
      color[7]++;
    else
      r++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) cnt++;
  }
  cout << (cnt) << " ";
  cout << (cnt + r) << endl;
  ;
  return 0;
}
