#include <bits/stdc++.h>
using namespace std;
int vis[9];
int fre, cnt;
int main() {
  int n, t;
  scanf("%d", &n);
  fre = cnt = 0;
  while (n--) {
    scanf("%d", &t);
    if (t >= 3200)
      fre++;
    else
      vis[t / 400]++;
  }
  for (int i = 0; i <= 7; i++)
    if (vis[i]) cnt++;
  if (fre > 8) fre = 8;
  if (cnt == 0)
    printf("%d %d\n", 1, fre);
  else
    printf("%d %d\n", cnt, cnt + fre > 8 ? 8 : cnt + fre);
  return 0;
}
