#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  set<int> s;
  int rainbow = 0;
  while (n--) {
    int t;
    cin >> t;
    if (t / 400 >= 8)
      rainbow++;
    else
      s.insert(t / 400);
  }
  cout << max(1, (int)s.size()) << " " << min(8, (int)s.size() + rainbow)
       << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
}
