#include <bits/stdc++.h>
using namespace std;
const long long int LINF = 2000000000000000000ll;
const int INF = 1000000100;
const long long int MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  for (int i = 0; i < (n); ++i) a[i] /= 400;
  vector<bool> color(8, false);
  int over = 0;
  for (int i = 0; i < (n); ++i) {
    if (a[i] < 8)
      color[a[i]] = true;
    else
      over++;
  }
  int mn = accumulate((color).begin(), (color).end(), 0);
  int mx = mn + over;
  cout << mn << " " << mx << endl;
  return 0;
}
