#include <bits/stdc++.h>
using namespace std;
inline int in() {
  int x;
  scanf("%d", &x);
  return x;
}
const long long int LINF = 1001002003004005006ll;
const int INF = 1001001001;
const int MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  int joker = 0;
  for (int i = 0; i < (N); ++i) {
    int a;
    cin >> a;
    int rate = a / 400;
    if (a >= 3200) {
      joker++;
    } else {
      mp[rate]++;
    }
  }
  int mi = (int)(mp).size();
  int ma = min(8, (int)(mp).size() + joker);
  cout << mi << " " << ma << endl;
  return 0;
}
