#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long inf = mod * mod;
const double EPS = 1e-10;
const double INF = 1e+10;
const double PI = acos(-1.0);
long long gcd(long long x, long long y) {
  if (y == 0)
    return x;
  else
    return gcd(y, x % y);
}
signed main() {
  vector<int> b(10, 0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      b[8]++;
    } else {
      b[a / 400] = 1;
    }
  }
  int c = 0;
  for (int i = 0; i < 8; i++) {
    c += b[i];
  }
  if (c != 0 && b[8])
    cout << max(c, b[8]) << ' ' << c + b[8] << endl;
  else if (c != 0)
    cout << c << ' ' << c << endl;
  else if (c == 0 && b[8])
    cout << 1 << ' ' << b[8] << endl;
}
