#include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) { return y == 0 ? x : gcd(y, x % y); }
int main() {
  int n;
  bool c[8] = {}, c2[8] = {};
  cin >> n;
  int target = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      c[a / 400] = c2[a / 400] = true;
    else
      target++;
  }
  while (target--) {
    int x = -1;
    for (int i = 0; i < 8; i++) {
      if (c[i]) {
        x = i;
        break;
      }
    }
    if (x == -1) c[0] = true;
    x = -1;
    for (int i = 0; i < 8; i++) {
      if (!c2[i]) {
        x = i;
        break;
      }
    }
    if (x != -1) c2[x] = true;
  }
  int mi = 0, ma = 0;
  for (int i = 0; i < 8; i++) mi += c[i], ma += c2[i];
  cout << mi << " " << ma << endl;
  return 0;
}
