#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int free = 0;
  vector<bool> validColor(8, false);
  for (long long i = (0), ixxxx_end = (N); i < ixxxx_end; ++i) {
    int a;
    cin >> a;
    int color = a / 400;
    if (color > 7) {
      free++;
    } else {
      validColor[color] = true;
    }
  }
  int c = count(validColor.begin(), validColor.end(), true);
  int ans1 = max(c, 1);
  int ans2 = min(c + free, 8);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
