#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < (int)n; ++i) {
    int tmp;
    cin >> tmp;
    a[i] = tmp / 400;
  }
  sort(a, a + n);
  int ans = 1;
  int cc = 0;
  for (int i = 0; i < (int)n - 1; ++i)
    if (a[i + 1] != a[i] && a[i + 1] < 8) ++ans;
  for (int i = 0; i < (int)n; ++i)
    if (a[i] >= 8) ++cc;
  cout << ans << " " << ans + cc << endl;
  return 0;
}
