#include <bits/stdc++.h>
using namespace std;
int n, a[105], ans = 0, red = 0, t[105];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] >= 3200)
      red++;
    else
      t[a[i] / 400] = 1;
  }
  for (int i = 0; i < 8; i++)
    if (t[i]) ans++;
  printf("%d %d\n", ans, ans + red);
  return 0;
}
