#include <bits/stdc++.h>
using namespace std;
template <typename T>
void chmax(T &a, T b) {
  a = max(a, b);
}
template <typename T>
void chmin(T &a, T b) {
  a = min(a, b);
}
template <typename T>
void chadd(T &a, T b) {
  a = a + b;
}
long long int dx[] = {0, 0, 1, -1};
long long int dy[] = {1, -1, 0, 0};
constexpr long long INF = 1001001001001001LL;
constexpr long long MOD = 1000000007LL;
long long int N, a[110];
long long int arr[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
signed main() {
  cin >> N;
  long long int cnt[10] = {};
  long long int v = 0;
  for (long long int(i) = (0); (i) < (N); (i)++) {
    cin >> a[i];
    if (a[i] >= 3200)
      v++;
    else {
      long long int val = a[i];
      long long int idx = lower_bound(arr, arr + 8, val) - arr;
      cnt[idx]++;
    }
  }
  long long int ret = 0;
  for (long long int(i) = (0); (i) < (8); (i)++)
    if (cnt[i] != 0) ret++;
  printf("%lld %lld\n", ret, ret + v);
  return 0;
}
