#include <bits/stdc++.h>
using namespace std;
int a[8];
int main() {
  int n, sum, ans;
  while (~scanf("%d", &n)) {
    memset(a, 0, sizeof(a));
    sum = 0;
    ans = 0;
    for (int i = 0; i < n; i++) {
      int x;
      scanf("%d", &x);
      x = x / 400;
      if (x < 8) {
        a[x] = 1;
      } else {
        sum++;
      }
    }
    for (int i = 0; i <= 7; i++) {
      ans += a[i];
    }
    printf("%d %d\n", ans, ans + sum);
  }
  return 0;
}
