#include <bits/stdc++.h>
using namespace std;
int n;
bitset<10> colour;
void read() { cin >> n; }
void solve() {
  int ans = 0, nrNutella = 0;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    x = x / 400;
    if (x >= 8)
      ++nrNutella;
    else if (!colour[x]) {
      ++ans;
      colour[x] = 1;
    }
  }
  cout << max(1, ans) << " " << min(8, ans + nrNutella) << "\n";
}
int main() {
  ios ::sync_with_stdio(false);
  cin.tie(nullptr);
  int t = 1;
  while (t) {
    --t;
    read();
    solve();
  }
  return 0;
}
