#include <bits/stdc++.h>
using namespace std;
const int dx[4] = {0, 1, 0, -1};
const int dy[4] = {1, 0, -1, 0};
const int maxn = 1e5 + 1;
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long int lcm(long long int a, long long int b) {
  return (a * b) / gcd(a, b);
}
int a[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int hash[10], cnt = 0;
  memset(hash, 0, sizeof(hash));
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399)
      hash[0]++;
    else if (a[i] >= 400 && a[i] <= 799)
      hash[1]++;
    else if (a[i] >= 800 && a[i] <= 1199)
      hash[2]++;
    else if (a[i] >= 1200 && a[i] <= 1599)
      hash[3]++;
    else if (a[i] >= 1600 && a[i] <= 1999)
      hash[4]++;
    else if (a[i] >= 2000 && a[i] <= 2399)
      hash[5]++;
    else if (a[i] >= 2400 && a[i] <= 2799)
      hash[6]++;
    else if (a[i] >= 2800 && a[i] <= 3199)
      hash[7]++;
    else
      cnt++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (hash[i] > 0) ans++;
  }
  if (ans > 0) {
    cout << ans << " ";
  } else
    cout << "1 ";
  if (ans + cnt >= 8)
    cout << "8\n";
  else
    cout << ans + cnt << endl;
  return 0;
}
