#include <bits/stdc++.h>
const int N = 0;
using namespace std;
int main() {
  int n;
  cin >> n;
  int colors[9];
  std::fill_n(colors, 9, 0);
  for (int i = 0, almo5t = n; i < almo5t; ++i) {
    int val;
    cin >> val;
    colors[val / 400]++;
  }
  int max = 0;
  int min = 0;
  for (int i = 0, almo5t = 8; i < almo5t; ++i) {
    if (colors[i] > 0) {
      min++;
      max++;
    }
  }
  if (min == 0 && colors[8] > 0) {
    min = 1;
  }
  max += colors[8];
  cout << min << " " << max;
  return 0;
}
