#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> c(8, 0);
  int col = 0;
  int ans = 0;
  for (int(i) = 0; (i) < (n); (i)++) {
    int a;
    cin >> a;
    if (1 <= a and a <= 399) {
      c.at(0)++;
    } else if (400 <= a and a <= 799) {
      c.at(1)++;
    } else if (800 <= a and a <= 1199) {
      c.at(2)++;
    } else if (1200 <= a and a <= 1599) {
      c.at(3)++;
    } else if (1600 <= a and a <= 1999) {
      c.at(4)++;
    } else if (2000 <= a and a <= 2399) {
      c.at(5)++;
    } else if (2400 <= a and a <= 2799) {
      c.at(6)++;
    } else if (2800 <= a and a <= 3199) {
      c.at(7)++;
    } else {
      col++;
    }
  }
  for (int(i) = 0; (i) < (8); (i)++) {
    if (c.at(i) > 0) {
      ans++;
    }
  }
  int m = 0, M = 0;
  if (col > 0) {
    m = 0;
    M = col;
  }
  cout << ans + m << " " << ans + M << endl;
  return 0;
}
