#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[9];
  int N, rate, count = 0;
  cin >> N;
  for (int i = 0; i < 9; i++) color[i] = 0;
  for (int i = 0; i < N; i++) {
    cin >> rate;
    if (rate < 400)
      color[0]++;
    else if (rate >= 400 && rate < 800)
      color[1]++;
    else if (rate >= 800 && rate < 1200)
      color[2]++;
    else if (rate >= 1200 && rate < 1600)
      color[3]++;
    else if (rate >= 1600 && rate < 2000)
      color[4]++;
    else if (rate >= 2000 && rate < 2400)
      color[5]++;
    else if (rate >= 2400 && rate < 2800)
      color[6]++;
    else if (rate >= 2800 && rate < 3200)
      color[7]++;
    else
      color[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) count++;
  }
  cout << count << " " << count + color[8] << endl;
  return 0;
}
