#include <bits/stdc++.h>
using namespace std;
const long long INF = numeric_limits<long long int>::max();
const long long MOD = 1000000007;
const long double PI = 3.1415926;
template <class T>
T &chmin(T &a, const T &b) {
  return a = min(a, b);
}
template <class T>
T &chmax(T &a, const T &b) {
  return a = max(a, b);
}
long long int n, m, k, ans = 0, sum = 0, cnt = 0;
string s;
int main() {
  long long int N;
  cin >> N;
  vector<long long int> bin(9, 0);
  for (long long int i = (long long int)(0); i < (long long int)(N); i++) {
    long long int a;
    cin >> a;
    a = min(a, 3200ll);
    bin[a / 400] += 1;
  }
  long long int x = 0, y = 0;
  for (long long int i = (long long int)(0); i < (long long int)(8); i++) {
    if (bin[i] > 0)
      x++;
    else
      y++;
  }
  cout << x + max(bin[8] - y, 0ll) << " " << x + min(bin[8], y) << endl;
  return 0;
}
