#include <bits/stdc++.h>
using namespace std;
int color(int x) {
  if (x >= 1 && x <= 399) {
    return 0;
  }
  if (x >= 400 && x <= 799) {
    return 1;
  }
  if (x >= 800 && x <= 1199) {
    return 2;
  }
  if (x >= 1200 && x <= 1599) {
    return 3;
  }
  if (x >= 1600 && x <= 1999) {
    return 4;
  }
  if (x >= 2000 && x <= 2399) {
    return 5;
  }
  if (x >= 2400 && x <= 2799) {
    return 6;
  }
  if (x >= 2800 && x <= 3199) {
    return 7;
  }
  return 8;
}
int main() {
  int n;
  cin >> n;
  vector<bool> was(8, false);
  int count3200 = 0;
  int max = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    int col = color(x);
    if (col == 8) {
      count3200++;
    } else {
      was[col] = true;
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (was[i]) {
      count++;
    }
  }
  cout << count << " " << (count + count3200);
  return 0;
}
