#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> color(9);
  for (int i = 0; i < n; i++) {
    long long temp;
    cin >> temp;
    long long a = temp / 400;
    if (a > 8) a = 8;
    color[a]++;
  }
  long long ans = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) ans++;
  cout << ans << " ";
  ans += color[8];
  if (ans > 8) ans = 8;
  cout << ans << endl;
  return 0;
}
