#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], cnt[10] = {}, mid = 0, max;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      cnt[1]++;
    else if (a[i] < 800)
      cnt[2]++;
    else if (a[i] < 1200)
      cnt[3]++;
    else if (a[i] < 1600)
      cnt[4]++;
    else if (a[i] < 2000)
      cnt[5]++;
    else if (a[i] < 2400)
      cnt[6]++;
    else if (a[i] < 2800)
      cnt[7]++;
    else if (a[i] < 3200)
      cnt[8]++;
    else
      cnt[9]++;
  }
  for (int i = 1; i < 9; i++) {
    if (cnt[i] > 0) mid++;
  }
  max = mid + cnt[9];
  if (max > 9) max = 9;
  if (mid == 0) mid = 1;
  cout << mid << ' ' << max << endl;
  return 0;
}
