#include <bits/stdc++.h>
using namespace std;
int rate_judge(int);
int main() {
  int n, count[9] = {0}, min = 0;
  vector<int> a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int b;
    cin >> b;
    a.push_back(b);
  }
  for (int i = 0; i < n; i++) {
    switch (rate_judge(a[i])) {
      case 0:
        count[0]++;
        break;
      case 1:
        count[1]++;
        break;
      case 2:
        count[2]++;
        break;
      case 3:
        count[3]++;
        break;
      case 4:
        count[4]++;
        break;
      case 5:
        count[5]++;
        break;
      case 6:
        count[6]++;
        break;
      case 7:
        count[7]++;
        break;
      case 8:
        count[8]++;
        break;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (count[i] != 0) {
      min++;
    }
  }
  cout << min << " " << min + count[8] << endl;
  return 0;
}
int rate_judge(int n) {
  if (1 <= n && n <= 399) {
    return 0;
  } else if (400 <= n && n <= 799) {
    return 1;
  } else if (800 <= n && n <= 1199) {
    return 2;
  } else if (1200 <= n && n <= 1599) {
    return 3;
  } else if (1600 <= n && n <= 1999) {
    return 4;
  } else if (2000 <= n && n <= 2399) {
    return 5;
  } else if (2400 <= n && n <= 2799) {
    return 6;
  } else if (2800 <= n && n <= 3199) {
    return 7;
  }
  return 8;
}
