#include <bits/stdc++.h>
using namespace std;
int a[200000], b[200000];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << setprecision(9);
  int N;
  cin >> N;
  bool flg[8] = {};
  int over = 0;
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200)
      flg[rate / 400] = true;
    else
      over++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (flg[i]) ans++;
  }
  cout << ans << " " << ans + over << endl;
  return 0;
}
