#include <bits/stdc++.h>
using namespace std;
const int maxn = 100000 + 5;
const int inf = INT_MAX;
int main() {
  int N;
  cin >> N;
  bool vis[11];
  memset(vis, false, sizeof(vis));
  int cnt = 0, cc = 0;
  while (N--) {
    int x;
    cin >> x;
    if (x <= 3199 && !vis[x / 400]) {
      cnt++;
      vis[x / 400] = true;
    } else if (x > 3199)
      cc++;
  }
  printf("%d %d\n", cnt, (cnt + cc) > 8 ? 8 : (cnt + cc));
}
