#include <bits/stdc++.h>
using namespace std;
long long abs(long long a, long long b) { return (a > b ? a - b : b - a); }
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
  }
  vector<int> b(8);
  for (int i = 0; i < 8; i++) {
    b.at(i) = 0;
  }
  int over = 0, ans = 0;
  for (int i = 0; i < n; i++) {
    if (a.at(i) >= 1 && a.at(i) <= 399) {
      b.at(0)++;
    } else if (a.at(i) >= 400 && a.at(i) <= 799) {
      b.at(1)++;
    } else if (a.at(i) >= 800 && a.at(i) <= 1199) {
      b.at(2)++;
    } else if (a.at(i) >= 1200 && a.at(i) <= 1599) {
      b.at(3)++;
    } else if (a.at(i) >= 1600 && a.at(i) <= 1999) {
      b.at(4)++;
    } else if (a.at(i) >= 2000 && a.at(i) <= 2399) {
      b.at(5)++;
    } else if (a.at(i) >= 2400 && a.at(i) <= 2799) {
      b.at(6)++;
    } else if (a.at(i) >= 2800 && a.at(i) <= 3199) {
      b.at(7)++;
    } else if (a.at(i) >= 3200) {
      over++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (b.at(i) != 0) {
      ans++;
    }
  }
  cout << ans << ' ' << ans + over << endl;
}
