#include <bits/stdc++.h>
using namespace std;
int ans = 0, res = 0, num = 0;
bool flag1 = 0, flag2 = 0, flag3 = 0, flag4 = 0, flag5 = 0, flag6 = 0,
     flag7 = 0, flag8 = 0;
int main() {
  int n, a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    if (a >= 1 && a <= 399) {
      if (flag1 == 0) res++;
      flag1 = 1;
    }
    if (a >= 400 && a <= 799) {
      if (flag2 == 0) res++;
      flag2 = 1;
    }
    if (a >= 800 && a <= 1199) {
      if (flag3 == 0) res++;
      flag3 = 1;
    }
    if (a >= 1200 && a <= 1599) {
      if (flag4 == 0) res++;
      flag4 = 1;
    }
    if (a >= 1600 && a <= 1999) {
      if (flag5 == 0) res++;
      flag5 = 1;
    }
    if (a >= 2000 && a <= 2499) {
      if (flag6 == 0) res++;
      flag6 = 1;
    }
    if (a >= 2500 && a <= 2799) {
      if (flag7 == 0) res++;
      flag7 = 1;
    }
    if (a >= 2800 && a <= 3199) {
      if (flag8 == 0) res++;
      flag8 = 1;
    }
    if (a >= 3200) {
      num++;
    }
  }
  if (res == 0)
    cout << 1 << " " << num << endl;
  else
    cout << res << " " << res + num << endl;
  return 0;
}
