#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    color[min(a / 400, 8)]++;
  }
  int ans = 0;
  bool red_only = true;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      ans++;
      red_only = false;
    }
  }
  if (red_only)
    cout << 1 << " " << min(ans + color[8], 7) << endl;
  else
    cout << ans << " " << min(ans + color[8], 7) << endl;
}
