#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  bool flag = false;
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200) {
      flag = true;
      mp[99]++;
    } else
      mp[tmp / 400]++;
  }
  int ans1 = flag ? mp.size() - 1 : mp.size();
  int ans2 = min(8, (flag ? (int)mp.size() - 1 : (int)mp.size()) + mp[99]);
  cout << (ans1) << " ";
  cout << (ans2) << "\n";
}
