#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(8);
  int gold = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    a /= 400;
    if (a < 8)
      color[a] = true;
    else
      gold++;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) {
    if (color[i]) ans++;
  }
  cout << max(1, ans) << ' ' << min(8, ans + gold) << endl;
  return 0;
}
