#include <bits/stdc++.h>
using namespace std;
template <class T>
T ceil(T a, T b) {
  return (a + b - 1) / b;
}
template <class T>
T round(T a, T b) {
  return (a + b / 2) / b;
}
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
template <class T>
T lcm(T a, T b) {
  return a * b / gcd(a, b);
}
template <class T>
bool amax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool amin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int cnt[9] = {};
  for (int i = (int)(0); i < (int)(N); i += (int)(1)) {
    int a;
    cin >> a;
    if (a >= 3200) {
      cnt[8]++;
      continue;
    }
    for (int j = (int)(0); j < (int)(8); j += (int)(1)) {
      if (a < 400 * (j + 1)) {
        cnt[j]++;
        break;
      }
    }
  }
  int res = 0;
  for (int i = (int)(0); i < (int)(8); i += (int)(1)) {
    if (cnt[i] > 0) {
      res++;
    }
  }
  cout << max(res, 1) << " " << min(res + cnt[8], 8) << "\n";
  return 0;
}
