#include <bits/stdc++.h>
using namespace std;
template <typename T>
void pv(T a, T b) {
  for (T i = a; i != b; i++) cout << *i << " ";
  cout << endl;
}
template <typename T, typename U>
inline void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
inline void amax(T &x, U y) {
  if (x < y) x = y;
}
int in() {
  int x;
  scanf("%d", &x);
  return x;
}
long long lin() {
  long long x;
  scanf("%lld", &x);
  return x;
}
signed main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int(i) = 0; (i) < (int)(n); (i)++) cin >> a[i];
  int cnt[8] = {0};
  int ans = 0;
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    if (1 <= a[i] && a[i] <= 399)
      cnt[0]++;
    else if (400 <= a[i] && a[i] <= 799)
      cnt[1]++;
    else if (800 <= a[i] && a[i] <= 1199)
      cnt[2]++;
    else if (1200 <= a[i] && a[i] <= 1599)
      cnt[3]++;
    else if (1600 <= a[i] && a[i] <= 1999)
      cnt[4]++;
    else if (2000 <= a[i] && a[i] <= 2399)
      cnt[5]++;
    else if (2400 <= a[i] && a[i] <= 2799)
      cnt[6]++;
    else if (2800 <= a[i] && a[i] <= 3199)
      cnt[7]++;
    else
      ans++;
  }
  int c = 0;
  for (int(i) = 0; (i) < (int)(8); (i)++)
    if (cnt[i] > 0) c++;
  cout << c << ' ' << c + ans << endl;
  return 0;
}
