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