#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
long long dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
long long gcd(long long x, long long y) {
  long long r;
  while ((r = x % y) != 0) {
    x = y;
    y = r;
  }
  return y;
}
long long lcm(long long x, long long y) {
  x /= gcd(x, y);
  y /= gcd(x, y);
  return (x * y);
}
int main() {
  long long n, low = 0, high = 399, count = 0;
  cin >> n;
  vector<long long> a(n), color(9);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    low = 0;
    high = 399;
    for (int j = 0; j < 8; j++) {
      if (low <= a[i] && a[i] <= high) color[j]++;
      low += 400;
      high += 400;
    }
    if (a[i] >= 3200) color[8]++;
  }
  for (int i = 0; i < 8; i++)
    if (color[i] > 0) count++;
  cout << count;
  count += color[8];
  if (count > 8) count = 8;
  cout << " " << count << endl;
  return 0;
}
