#include <bits/stdc++.h>
using namespace std;
int n, a[105], v[100], k;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]), v[a[i] / 400]++;
  for (int i = 0; i <= 7; i++) k += (v[i] > 0);
  cout << k + (!k && v[8]) << " " << min(k + v[8], 9) << endl;
  return 0;
}
