#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9, MOD = 1e9 + 7;
const long double PI = abs(acos(-1));
int n, a, li[9];
int main() {
  cin >> n;
  for (int i = (0); i < (n); i++) cin >> a, li[a / 400]++;
  int c = 0;
  for (int i = (0); i < (8); i++)
    if (li[i]) c++;
  cout << (c ? c : 1) << " " << (c + li[8] > 8 ? 8 : c + li[8]) << endl;
  return 0;
}
