#include <bits/stdc++.h>
using namespace std;
int color[9] = {0};
int main() {
  int N, a;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    ++color[a / 400];
  }
  int ans = 0;
  for (int i = 0; i < 9; ++i) {
    ans += (color[i] > 0);
  }
  int check[2] = {0, color[8] - ans};
  cout << ans + check[color[8] > ans] - (color[8] > 0) << " "
       << ans + color[8] - (color[8] > 0) << endl;
}
