#include <bits/stdc++.h>
using ll = long long;
using R = double;
using namespace std;
set<int> s;
signed main() {
  int N;
  int a[110];
  int cnt = 0;
  cin >> N;
  for (ll i = (0); i < (N); i++) {
    cin >> a[i];
    if (a[i] <= 3199) {
      s.insert(a[i] / 400);
    } else {
      cnt++;
    }
  }
  cout << s.size() << " " << min((int)(s.size() + cnt), 8) << endl;
  return 0;
}
