#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a;
  int c[8] = {0};
  int ans = 0;
  int yaba = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      c[a / 400] = 1;
    else
      yaba++;
  }
  for (int i = 0; i < 8; i++) ans += c[i];
  cout << ans << " " << ans + yaba << endl;
  return 0;
}
