#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0;
  cin >> n;
  vector<int> b(9);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    b[min(x / 400, 8)]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) cnt++;
  }
  int min_ans = cnt, max_ans = min(cnt + b[8], 9);
  if (min_ans == 0 && b[8] > 0) min_ans++;
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
