#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int dy[] = {0, 0, 1, -1};
int dx[] = {1, -1, 0, 0};
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a / gcd(a, b) * b; }
int main() {
  int n;
  cin >> n;
  int color[9] = {};
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    t = t / 400;
    if (t >= 8) t = 8;
    color[t]++;
  }
  int max = 0, min = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      max++;
      min++;
    }
  }
  if (min == 0 && color[8] <= 8) {
    max = color[8];
    min = 1;
  } else if (min == 0) {
    max = 8;
    min = 1;
  } else if (max + color[8] >= 8) {
    max = 8;
  } else {
    max = max + color[8];
  }
  cout << min << " " << max << endl;
  return 0;
}
