#include <bits/stdc++.h>
int main(void) {
  int n;
  scanf("%d", &n);
  int a[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int ans[8];
  for (int i = 0; i < 8; i++) {
    ans[i] = 0;
  }
  int free = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 400) {
      ans[0] = 1;
    } else if (a[i] < 800) {
      ans[1] = 1;
    } else if (a[i] < 1200) {
      ans[2] = 1;
    } else if (a[i] < 1600) {
      ans[3] = 1;
    } else if (a[i] < 2000) {
      ans[4] = 1;
    } else if (a[i] < 2400) {
      ans[5] = 1;
    } else if (a[i] < 2800) {
      ans[6] = 1;
    } else if (a[i] < 3200) {
      ans[7] = 1;
    } else {
      free += 1;
    }
  }
  int fixed = 0;
  for (int i = 0; i < 8; i++) {
    if (ans[i] == 1) {
      fixed += 1;
    }
  }
  printf("%d %d\n", fixed, fixed + free);
  return 0;
}
