#include <bits/stdc++.h>
using namespace std;
const long long int sz = 1e5 + 5;
const long long int szz = 1e6 + 6;
const long long int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);
  clock_t startTime = clock();
  long long int n;
  cin >> n;
  long long int ar[n];
  for (long long int i = 0; i < n; i++) {
    cin >> ar[i];
  }
  set<long long int> s;
  long long int extra = 0;
  for (long long int i = 0; i < n; i++) {
    if (ar[i] > 3199) {
      extra++;
      continue;
    }
    s.insert(ar[i] / 400);
  }
  long long int ans = s.size();
  if (ans == 0) {
    ans = 1, extra--;
  }
  cout << ans << " " << extra << "\n";
  cerr << "\n"
       << setprecision(20)
       << double(clock() - startTime) / (double)CLOCKS_PER_SEC << " seconds."
       << "\n";
}
