#include <bits/stdc++.h>
using namespace std;
int n, a[102], color[10];
int main() {
  cin >> n;
  int cnt = 0, cnt1 = 0, mn = 0, mx;
  memset(color, 0, sizeof(color));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) {
      color[1]++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      color[2]++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      color[3]++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      color[4]++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      color[5]++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      color[6]++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      color[7]++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      color[8]++;
    } else
      cnt++;
  }
  for (int i = 1; i <= 8; i++) {
    if (color[i] > 0) {
      mn++;
    }
  }
  cout << mn << " " << mn + cnt << endl;
  return 0;
}
