#include <bits/stdc++.h>
using namespace std;
vector<bool> c(8, false);
int main() {
  int n, a, ans, s = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      s++;
    else if (a >= 2800)
      c[0] = true;
    else if (a >= 2400)
      c[1] = true;
    else if (a >= 2000)
      c[2] = true;
    else if (a >= 1600)
      c[3] = true;
    else if (a >= 1200)
      c[4] = true;
    else if (a >= 800)
      c[5] = true;
    else if (a >= 400)
      c[6] = true;
    else
      c[7] = true;
  }
  ans = count(c.begin(), c.end(), true);
  cout << ans << ' ' << ans + s << endl;
  return 0;
}
