#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 28;
const int maxn = 10;
const int maxm = 20010;
const int mod = 1e9 + 7;
const double pi = acos(-1.0);
int n;
int main() {
  scanf("%d", &n);
  int vis[maxn];
  memset(vis, 0, sizeof(vis));
  int k = 0;
  for (int i = 0; i < n; i++) {
    int score;
    scanf("%d", &score);
    if (score >= 3200)
      k++;
    else
      vis[score / 400] = 1;
  }
  int c = 0;
  for (int i = 0; i <= 7; i++)
    if (vis[i]) c++;
  printf("%d %d\n", c, c + k >= 8 ? 8 : c + k);
  return 0;
}
