#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  long long a;
  long long color[9];
  for (long long i = 0; i < 9; i++) {
    color[i] = 0;
  }
  for (long long i = 0; i < N; i++) {
    cin >> a;
    if (a <= 399) {
      color[0]++;
    } else if (a <= 799) {
      color[1]++;
    } else if (a <= 1199) {
      color[2]++;
    } else if (a <= 1599) {
      color[3]++;
    } else if (a <= 1999) {
      color[4]++;
    } else if (a <= 2399) {
      color[5]++;
    } else if (a <= 2799) {
      color[6]++;
    } else if (a <= 3199) {
      color[7]++;
    } else {
      color[8]++;
    }
  }
  long long ans = 0;
  for (long long i = 0; i < 9; i++) {
    if (color[i] > 0) {
      ans++;
    }
  }
  cout << ans << " " << ans + max((long long)0, color[8] - 1) << endl;
  return 0;
}
