#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> clrs(9, 0);
  for (int(i) = 0; (i) < (N); (i)++) {
    int tmp;
    cin >> tmp;
    int index = min(tmp / 400, 8);
    clrs[index]++;
  }
  int min_ans = 0;
  for (int(i) = 0; (i) < (8); (i)++) {
    min_ans += (clrs[i] ? 1 : 0);
  }
  int max_ans = min_ans + clrs[8];
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
