#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e18;
const double EPS = 1e-9;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
void yes() { cout << "Yes" << endl; }
void no() { cout << "No" << endl; }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> vec(8);
  int cntt = 0;
  for (int(i) = 0; (i) < (int)(n); i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      vec.at(a / 400)++;
    } else {
      cntt++;
    }
  }
  int cnt = 0;
  for (int(i) = 0; (i) < (int)(8); i++) {
    if (vec.at(i) != 0) {
      cnt++;
    }
  }
  cout << max(1, cnt) << " " << min(8, cnt + cntt) << endl;
  return 0;
}
