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