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