#include <bits/stdc++.h>
using namespace std;
double const eps = 1e-6;
long long const Base = 1e9 + 7, oo = 1e17;
long long arr[1000000], mark[10000000];
long long Solves() {
  long long n, k, cnt = 0, ans = 0, x, p, test, sum = 0, query, a, b, c, d;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> x;
    mark[x / 400]++;
    if (x >= 3200) cnt++;
  }
  x = 0;
  for (long long i = 0; i < 8; i++)
    if (mark[i]) x++;
  cout << x << " " << min(8LL, x + cnt) << " ";
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  Solves();
}
