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