#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n, count = 0, ans = 0;
  cin >> n;
  vector<bool> v(9, false);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 3200) {
      v.at(8) = true;
      count++;
    } else {
      v.at(x / 400) = true;
    }
  }
  for (int j = 0; j < 8; j++) {
    if (v.at(j) == true) {
      ans++;
    }
  }
  cout << ans << " " << ans + count << endl;
}
