#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;

int main() {
  int n;
  cin >> n;
  vector<int> a(n), cl(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
    if (0 < a.at(i) && a.at(i) < 400)
      cl.at(0) = 1;
    else if (400 <= a.at(i) && a.at(i) < 800)
      cl.at(1) = 1;
    else if (800 <= a.at(i) && a.at(i) < 1200)
      cl.at(2) = 1;
    else if (1200 <= a.at(i) && a.at(i) < 1600)
      cl.at(3) = 1;
    else if (1600 <= a.at(i) && a.at(i) < 2000)
      cl.at(4) = 1;
    else if (2000 <= a.at(i) && a.at(i) < 2400)
      cl.at(5) = 1;
    else if (2400 <= a.at(i) && a.at(i) < 2800)
      cl.at(6) = 1;
    else if (2800 <= a.at(i) && a.at(i) < 3200)
      cl.at(7) = 1;
    else cl.at(8)++;
  }
  int sum = 0;
  for (int i = 0; i < 9; i++) sum += cl.at(i);
  if (cl.at(8) > 0) max(1, cout << sum - cl.at(8)) << " ";
  else cout << sum << " ";
  cout << sum << endl;
}