#include <bits/stdc++.h>
using namespace std;
int fn(int x) {
  if (x <= 399)
    return 1;
  else if (x <= 799)
    return 2;
  else if (x <= 1199)
    return 3;
  else if (x <= 1599)
    return 4;
  else if (x <= 1999)
    return 5;
  else if (x <= 2399)
    return 6;
  else if (x <= 2799)
    return 7;
  else if (x <= 3199)
    return 8;
  else
    return 9;
}
int arr[105];
set<int> s;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i] >= 3200)
      cnt++;
    else {
      s.insert(fn(arr[i]));
    }
  }
  int lower = n - cnt;
  if (lower == 0) {
    printf("1 8");
    return 0;
  }
  int mini = (int)s.size();
  int maxa = min((int)s.size() + cnt, 7);
  printf("%d %d", mini, maxa);
}
