#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b != 0 ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
  long long n;
  cin >> n;
  long long rate[9] = {}, a;
  for (long long i = 0; i < (long long)(n); i++) {
    cin >> a;
    rate[min(a / 400, (long long)8)]++;
  }
  long long cnt = 0;
  for (long long i = 0; i < (long long)(8); i++) {
    if (rate[i] != 0) cnt++;
  }
  cout << max((long long)1, cnt) << ' ' << min((long long)8, cnt + rate[8])
       << endl;
  return 0;
}
