#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const vector<int> di = {-1, 0, 1, 0};
const vector<int> dj = {0, 1, 0, -1};
int color_check(int a) {
  if (a < 400)
    return 0;
  else if (a < 800)
    return 1;
  else if (a < 1200)
    return 2;
  else if (a < 1600)
    return 3;
  else if (a < 2000)
    return 4;
  else if (a < 2400)
    return 5;
  else if (a < 2800)
    return 6;
  else if (a < 3200)
    return 7;
  else
    return 8;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a.at(i);
  vector<int> num(9);
  for (int i = 0; i < n; i++) {
    int color = color_check(a.at(i));
    if (color == 8) {
      num.at(color)++;
    } else {
      num.at(color) = 1;
    }
  }
  int ans_min = 0;
  int ans_max = 0;
  for (int i = 0; i < 8; i++) {
    if (num.at(i) != 0) ans_min++;
  }
  ans_max = ans_min + num.at(8);
  cout << ans_min << ' ' << ans_max << endl;
  return 0;
}
