#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans, a, tmp;
  cin >> n;
  ans = 0;
  vector<int> col(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    col[tmp / 400] += 1;
  }
  for (int i = 0; i < 8; i++) {
    if (col[i] >= 1) ans += 1;
  }
  cout << ans << " ";
  ans += col[8];
  cout << ans << endl;
  return 0;
}
