#include <bits/stdc++.h>
using namespace std;
int n;
int col[100];
int main(void) {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a / 400 <= 7) {
      col[a / 400]++;
    } else {
      col[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i <= 7; i++) {
    if (col[i] > 0) {
      ans++;
    }
  }
  if (ans > 0) {
    cout << ans << " " << min(8, ans + col[8]) << endl;
  } else {
    cout << 1 << " " << min(8, col[8]) << endl;
  }
}
