#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans1 = 0, ans2 = 0;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    mp[a[i] / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (mp[i] > 0) {
      ans1++;
      ans2++;
    }
  }
  if (ans1 == 0 and mp[8] > 0) {
    ans1++;
  }
  ans2 += mp[8];
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
