#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, min = 0;
  int color[9] = {0};
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> t;
    switch (t / 400) {
      case 0:
        color[0] = 1;
        break;
      case 1:
        color[1] = 1;
        break;
      case 2:
        color[2] = 1;
        break;
      case 3:
        color[3] = 1;
        break;
      case 4:
        color[4] = 1;
        break;
      case 5:
        color[5] = 1;
        break;
      case 6:
        color[6] = 1;
        break;
      case 7:
        color[7] = 1;
        break;
      default:
        color[8]++;
        break;
    }
  }
  for (int i = 0; i <= 7; i++) {
    min += color[i];
  }
  cout << min << " " << min + color[8];
}
