#include <bits/stdc++.h>
using namespace std;
int N, t, ansMin, ansMax;
int colors[10];
int main() {
  cin >> N;
  for (long long i = (long long)(0); i < (long long)(N); i++) {
    cin >> t;
    for (long long j = (long long)(1); j < (long long)(9); j++) {
      if (t < 400 * j) {
        colors[j - 1]++;
        break;
      }
      if (j == 8) colors[8]++;
    }
  }
  for (long long i = (long long)(0); i < (long long)(8); i++) {
    if (colors[i] > 0) ansMin++;
  }
  ansMax = ansMin + colors[8];
  cout << ansMin << " " << ansMax << endl;
  return 0;
}
