#include <bits/stdc++.h>
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  bool c[8];
  for (int i = 0; i < 8; ++i) {
    c[i] = false;
  }
  int N;
  cin >> N;
  int over = 0;
  for (int i = 0; i < N; ++i) {
    int rate;
    cin >> rate;
    if (rate >= 3200) {
      over++;
    } else {
      c[rate / 400] = true;
    }
  }
  int colored = 0;
  for (int i = 0; i < 8; ++i) {
    if (c[i]) {
      colored++;
    }
  }
  int maxi, mini;
  mini = colored > 0 ? colored : 1;
  maxi = min(colored + over, 8);
  cout << mini << " " << maxi << endl;
  return 0;
}
