#include <bits/stdc++.h>
using namespace std;
int color[9] = {0};
int flag = 0;
int up3200 = 0;
void hantei(int r);
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    hantei(r);
  }
  int min;
  int cnt = 0;
  for (int i = 0; i < 9; i++) {
    if (flag == 0) {
      cnt += color[i];
      min = cnt;
    } else {
      cnt += color[i];
      if (i < 8) min += color[i];
    }
  }
  if (up3200 == N) {
    min = 1;
    cnt = N;
  }
  cout << min << " " << cnt << endl;
  return 0;
}
void hantei(int r) {
  if (r < 400)
    color[0] = 1;
  else if (r < 800)
    color[1] = 1;
  else if (r < 1200)
    color[2] = 1;
  else if (r < 1600)
    color[3] = 1;
  else if (r < 2100)
    color[4] = 1;
  else if (r < 2400)
    color[5] = 1;
  else if (r < 2800)
    color[6] = 1;
  else if (r < 3200)
    color[7] = 1;
  else {
    color[8] += 1;
    flag = 1;
    up3200++;
  }
}
