#include <bits/stdc++.h>
using namespace std;
using ll = long long;
bool flag[8];
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int(i) = (0); (i) < (int)(n); ++(i)) cin >> a[i];
  int c = 0;
  for (int(i) = (0); (i) < (int)(n); ++(i)) {
    int t = a[i] / 400;
    flag[t] = true;
    if (t >= 8) c++;
  }
  int cc = 0;
  for (int(i) = (0); (i) < (int)(8); ++(i))
    if (flag[i]) cc++;
  cout << cc << " " << cc + c << endl;
}
