#include <bits/stdc++.h>
using namespace std;
int cnt[10000] = {};
int main() {
  int n;
  cin >> n;
  for (long long i = 0; i < n; ++i) {
    int hoge;
    cin >> hoge;
    cnt[min(hoge / 400, 8)]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i]) ans++;
  }
  cout << max(1, ans) << endl;
  cout << min(8, ans + cnt[8]) << endl;
  return 0;
}
