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