#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rate[n];
  for (int i = 0; i < (int)(n); i++) cin >> rate[i];
  vector<bool> color;
  color.assign(8, false);
  int count = 0;
  for (int i = 0; i < (int)(n); i++) {
    for (int j = 0; j < (int)(9); j++) {
      if (j == 8) {
        count++;
        break;
      }
      if (rate[i] < 400 * (j + 1)) {
        color[j] = true;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++)
    if (color[i]) ans++;
  cout << max(ans, 1) << " " << min(ans + count, 8);
  return 0;
}
