#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> col(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    col[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] != 0) ans++;
  }
  int ma = ans + col[8];
  ma = min(ma, 8);
  int mi = max(ans, col[8]);
  cout << mi << ' ' << ma << endl;
}
