#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1e9 + 7, INF = 1e9;
int main() {
  int n, over = 0;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      over++;
    else
      m[a / 400]++;
  }
  int mn = 0, mx;
  for (auto itr = m.begin(); itr != m.end(); itr++) {
    mn += 1;
  }
  mx = mn + min(mn, over);
  cout << mn << " " << mx << endl;
  system("pause");
}
