#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  long long a[N];
  long long lv[9];
  for (long long j = 0; j < 9; j++) {
    lv[j] = 0;
  }
  for (long long i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] < 400)
      lv[0]++;
    else if (a[i] < 800)
      lv[1]++;
    else if (a[i] < 1200)
      lv[2]++;
    else if (a[i] < 1600)
      lv[3]++;
    else if (a[i] < 2000)
      lv[4]++;
    else if (a[i] < 2400)
      lv[5]++;
    else if (a[i] < 2800)
      lv[6]++;
    else if (a[i] < 3200)
      lv[7]++;
    else
      lv[8]++;
  }
  long long ans = 0;
  for (long long j = 0; j < 8; j++) {
    if (lv[j] > 0) {
      ans++;
    }
  }
  cout << ans << " ";
  ans += lv[8];
  cout << ans << endl;
  return 0;
}
