#include <bits/stdc++.h>
using namespace std;
long long color(long long point) {
  if (point <= 399) return 0;
  if (point <= 799) return 1;
  if (point <= 1199) return 2;
  if (point <= 1599) return 3;
  if (point <= 1999) return 4;
  if (point <= 2399) return 5;
  if (point <= 2799) return 6;
  if (point <= 3199) return 7;
}
int main() {
  ios_base::sync_with_stdio(0);
  long long n, a[100005], mx = 0;
  long long c[10] = {}, cnt = 0;
  cin >> n;
  for (long i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) mx++;
  }
  for (long i = 1; i <= n; i++) c[color(a[i])] = 1;
  for (long i = 0; i <= 7; i++)
    if (c[i]) cnt++;
  cout << cnt << " " << cnt + mx;
  return 0;
}
