#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[105];
  while (cin >> n) {
    int Max = 0, Min = 0;
    int book[10];
    memset(book, 0, sizeof(book));
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] < 400 && !book[1]) {
        Max++;
        Min++;
        book[1] = 1;
      } else if (400 <= a[i] && a[i] < 800 && !book[2]) {
        Max++;
        Min++;
        book[2] = 1;
      } else if (800 <= a[i] && a[i] < 1200 && !book[3]) {
        Max++;
        Min++;
        book[3] = 1;
      } else if (1200 <= a[i] && a[i] < 1600 && !book[4]) {
        Max++;
        Min++;
        book[4] = 1;
      } else if (1600 <= a[i] && a[i] < 2000 && !book[5]) {
        Max++;
        Min++;
        book[5] = 1;
      } else if (2000 <= a[i] && a[i] < 2400 && !book[6]) {
        Max++;
        Min++;
        book[6] = 1;
      } else if (2400 <= a[i] && a[i] < 2800 && !book[7]) {
        Max++;
        Min++;
        book[7] = 1;
      } else if (2800 <= a[i] && a[i] < 3200 && !book[8]) {
        Max++;
        Min++;
        book[8] = 1;
      } else if (a[i] >= 3200) {
        if (Min == 0) Min++;
        Max++;
      }
    }
    printf("%d %d\n", Min, Max);
  }
  return 0;
}
