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