#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, cnt = 0, col[9];
  memset(col, 0, sizeof(col));
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    for (int j = 0; j < 9; j++) {
      if (a < 400 * (j + 1)) {
        col[j]++;
        break;
      }
    }
  }
  for (int i = 0; i < 8; i++)
    if (col[i]) cnt++;
  cout << max(cnt, 1) << ' ' << cnt + col[8] << endl;
  return 0;
}
