#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll Max(ll(a), ll(b), ll(c)) { return max(max(a, b), c); }
ll Min(ll(a), ll(b), ll(c)) { return min(min(a, b), c); }
int counter = 0;
int gcd(int a, int b) {
  if (b == 0) return a;
  counter++;
  return gcd(b, a % b);
}
ll F[50];
int main() {
  ll N, red = 0;
  cin >> N;
  bool color[8];
  for (long long i = 0; i < (long long)(8); i++) {
    color[i] = false;
  }
  for (long long i = 0; i < (long long)(N); i++) {
    ll a;
    cin >> a;
    if (a >= 3200)
      red++;
    else {
      color[a / 400] = true;
    }
  }
  ll count = 0;
  for (long long i = 0; i < (long long)(8); i++) {
    if (color[i]) count++;
  }
  cout << max(ll(1), count) << " " << min(ll(8), count + red) << endl;
}
