#include <bits/stdc++.h>
using namespace std;
int n, num, freee;
bool val[8];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    if (x >= 3200)
      freee++;
    else {
      if (val[x / 400]) continue;
      val[x / 400] = true;
      num++;
    }
  }
  int ans = num;
  if (num == 0) ans = 1;
  int ans2 = min(num + freee, 8);
  if (ans2 == 0) ans2 = 1;
  printf("%d %d\n", ans, ans2);
  return 0;
}
