#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, b = 0;
  cin >> N;
  vector<int> a(8, 0);
  for (int i = 0; i < N; i++) {
    int c, check = 0;
    cin >> c;
    for (int j = 0; j < 8; j++) {
      if (c < 400*(j + 1) && check == 0) {
        a.at(j) = 1;
        check = 1;
      }
    }
    if (c >= 3200) {
      b++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += a.at(i);
  }
  cout << max(ans, 1) << " " << min(ans + b) << endl;
}