#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pp = pair<ll, ll>;
const ll amari = 1e9 + 7;
const char BC = 'A' - 'a';
int main() {
  int color[9] = {};
  int a, n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3600) a = 3200;
    color[a / 400]++;
  }
  int mini = 0, maxi = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) mini++;
  }
  maxi = mini + color[8];
  maxi = min(maxi, 8);
  mini = max(mini, 1);
  cout << mini << " " << maxi << endl;
  return 0;
}
