#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  map<int, int> ma;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    for (int j = 1; j <= 8; j++) {
      if (a[i] < 400 * j && a[i] >= 400 * (j - 1)) {
        ma[j]++;
      }
    }
    if (a[i] >= 3200) ma[9]++;
  }
  int ans = 0;
  int tmp = 0;
  for (auto it = ma.begin(); it != ma.end(); it++) {
    if (it->second != 0 && it->first != 9) ans++;
    if (it->second != 0 && it->first == 9) tmp += it->second;
  }
  cout << ans << " " << ans + tmp << endl;
  if (ans == 0) cout << 1 << ans + tmp << endl;
}
