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