#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);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    color[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) ans++;
  }
  cout << ans << " " << min(ans + color[8], 7) << endl;
}
