#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int rank_judge(int A) {
  int res = -1;
  for (int i = 0; i < 8; i++) {
    if (400 * i <= A && A < 400 * (i + 1)) {
      res = i;
      break;
    }
  }
  return res;
}
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < (int)(N); i++) cin >> A.at(i);
  vector<bool> exist(8, false);
  int tourist = 0;
  int color = 0;
  for (int i = 0; i < (int)(N); i++) {
    int X = rank_judge(A.at(i));
    if (X == -1) {
      tourist++;
    } else {
      if (exist.at(X)) {
        continue;
      } else {
        exist.at(X) = true;
        color++;
      }
    }
  }
  int ans0 = min(8, color + tourist);
  int ans1 = max(1, color);
  cout << ans0 << " " << ans1 << endl;
}
