#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v.at(i);
  }
  vector<int> color(8, 0);
  int other = 0;
  for (int i = 0; i < n; i++) {
    if (0 <= v.at(i) && v.at(i) <= 399) {
      color.at(0)++;
    } else if (400 <= v.at(i) && v.at(i) <= 799) {
      color.at(1)++;
    } else if (800 <= v.at(i) && v.at(i) <= 1199) {
      color.at(2)++;
    } else if (1200 <= v.at(i) && v.at(i) <= 1599) {
      color.at(3)++;
    } else if (1600 <= v.at(i) && v.at(i) <= 1999) {
      color.at(4)++;
    } else if (2000 <= v.at(i) && v.at(i) <= 2399) {
      color.at(5)++;
    } else if (2400 <= v.at(i) && v.at(i) <= 2799) {
      color.at(6)++;
    } else if (2800 <= v.at(i) && v.at(i) <= 3199) {
      color.at(7)++;
    } else if (3200 <= v.at(i)) {
      other++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (color.at(i) > 0) {
      sum++;
    }
  }
  if (sum < other) {
    cout << other << " " << sum + other << endl;
  } else {
    cout << sum << " " << sum + other << endl;
  }
}
