#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int free = 0;
  vector<int> color(8, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      free++;
      continue;
    }
    color[a / 400]++;
  }
  int ret_min = 0;
  for (int i = 0; i < color.size(); i++)
    if (color[i] != 0) ret_min++;
  int ret_max = min((int)color.size(), ret_min + free);
  if (ret_min == 0) ret_min = 1;
  cout << ret_min << " " << ret_max << endl;
  return 0;
}
