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