#include <bits/stdc++.h>
using namespace std;
void YN(bool flg) {
  if (flg)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
void Yn(bool flg) {
  if (flg)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
void yn(bool flg) {
  if (flg)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(8);
  int t = 0;
  int cnt = 0;
  for (int i = 0; i < (int)(n); i++) {
    int x;
    cin >> x;
    if (x >= 3200)
      t++;
    else {
      x /= 400;
      if (!a[x]) {
        a[x] = 1;
        cnt++;
      }
    }
  }
  cout << cnt << " " << min(8, cnt + t) << endl;
  return 0;
}
