#include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
int a[maxn];
int color[maxn];
int getcolor(int num) { return num / 400 + 1; }
int main() {
  int n;
  scanf("%d", &n);
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] < 3200)
      color[getcolor(a[i])]++;
    else
      cnt++;
  }
  int cnt2 = 0;
  for (int i = 1; i <= 8; i++) {
    if (color[i] == 0) cnt2++;
  }
  int minans = 8 - cnt2;
  int maxans = (cnt > cnt2) ? (8 + cnt - cnt2) : (8 - cnt2 + cnt);
  printf("%d %d", minans, maxans);
  return 0;
}
