#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  bool a[9] = {};
  int count3200 = 0;
  for (int i = 0; i < (n); i++) {
    int rate;
    cin >> rate;
    rate = rate / 400;
    if (rate == 0)
      a[rate] = true;
    else if (rate == 1)
      a[rate] = true;
    else if (rate == 2)
      a[rate] = true;
    else if (rate == 3)
      a[rate] = true;
    else if (rate == 4)
      a[rate] = true;
    else if (rate == 5)
      a[rate] = true;
    else if (rate == 6)
      a[rate] = true;
    else if (rate == 7)
      a[rate] = true;
    else {
      rate = 8;
      a[rate] = true;
      count3200++;
    }
  }
  int count = 0;
  for (int i = 0; i < (8); i++) {
    if (a[i]) count++;
  }
  int max_color = count + count3200;
  if (max_color > 8) max_color = 8;
  cout << count << " " << max_color << endl;
  return 0;
}
