#include <bits/stdc++.h>
using namespace std;
int main() {
  bool color[8];
  int free = 0;
  for (int i = 0; i < 8; i++) color[i] = false;
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a / 400 >= 8) {
      free++;
    } else {
      color[a / 400] = true;
    }
  }
  int kind = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) kind++;
  }
  cout << max(kind, 1) << " " << min(8, kind + free) << endl;
  return 0;
}
