#include <bits/stdc++.h>
using namespace std;
long long N, cnt = 0;
vector<long long> A;
map<int, int> mp;
void solve() { printf("%lu %lld\n", mp.size(), mp.size() + cnt); }
int main() {
  cin >> N;
  A.resize(N, 0);
  for (int i = 0, i_len = (N); i < i_len; ++i) {
    cin >> A[i];
    if (A[i] >= 3200)
      cnt++;
    else
      mp[A[i] / 400]++;
  }
  solve();
}
