#include <bits/stdc++.h>
const int dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const int dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
using namespace std;
long long max(long long a, int b) { return max(a, long long(b)); }
long long max(int a, long long b) { return max(long long(a), b); }
long long min(long long a, int b) { return min(a, long long(b)); }
long long min(int a, long long b) { return min(long long(a), b); }
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  vector<int> cnt(9, 0);
  int n;
  cin >> n;
  for (long long i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a >= 3200) a = 3200;
    cnt[a / 400]++;
  }
  int ans = 0;
  for (long long i = 0; i < 8; ++i) {
    if (cnt[i] > 0) ans++;
  }
  cout << max(cnt[8], ans) << " " << ans + cnt[8] << endl;
  return 0;
}
