#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long INF = 1e18;
const double pi = acos(-1.0);
int main(void) {
  long long n;
  cin >> n;
  vector<long long> color(9, 0);
  for (long long i = 0; i < (n); ++i) {
    long long a;
    cin >> a;
    if (a < 3200)
      color[a / 400]++;
    else
      color[8]++;
  }
  long long c = 0;
  for (long long i = 0; i < (8); ++i)
    if (color[i]) c++;
  if (c == 0) c = 1;
  cout << c << " " << c + color[8] << endl;
  return 0;
}
