#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100];
  while (cin >> n) {
    int s = 0, t = 0, b = 1, c = 1, d = 1, e = 1, f = 1, g = 1, h = 1, j = 1;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] >= 1 && a[i] < 399 && b == 1) {
        s++;
        b = 0;
      }
      if (a[i] >= 400 && a[i] <= 799 && c == 1) {
        s++;
        c = 0;
      }
      if (a[i] >= 800 && a[i] <= 1199 && j == 1) {
        s++;
        j = 0;
      }
      if (a[i] >= 1200 && a[i] <= 1599 && d == 1) {
        s++;
        d = 0;
      }
      if (a[i] >= 1600 && a[i] <= 1999 && e == 1) {
        s++;
        e = 0;
      }
      if (a[i] >= 2000 && a[i] <= 2399 && f == 1) {
        s++;
        f = 0;
      }
      if (a[i] >= 2400 && a[i] <= 2799 && g == 1) {
        s++;
        g = 0;
      }
      if (a[i] >= 2800 && a[i] <= 3199 && h == 1) {
        s++;
        h = 0;
      }
      if (a[i] >= 3200) t++;
    }
    cout << s << ' ' << s + t << endl;
  }
  return 0;
}
