#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INTMAX = numeric_limits<int>::max();
const int INTMIN = numeric_limits<int>::min();
const ll LLMAX = numeric_limits<long long>::max();
const ll LLMIN = numeric_limits<long long>::min();
const int MOD = 1000000007;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
using namespace std;
int main() {
  vector<int> c = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  vector<int> b(c.size(), 0);
  int pro = 0;
  int n;
  cin >> n;
  for (int i = 0; i < (n); i++) {
    int r;
    cin >> r;
    for (int j = 0; j < (c.size()); j++) {
      if (r < c[j]) {
        b[j] = 1;
        break;
      }
    }
    if (r >= 3200) pro++;
  }
  int cnt = 0;
  for (int i = 0; i < (b.size()); i++) {
    if (b[i] == 1) cnt++;
  }
  int max = min(n, min(cnt + pro, (int)b.size()));
  cout << cnt << ' ' << max << endl;
  return 0;
}
