#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e18;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  for (auto &in : a) cin >> in;
  int color[9] = {0};
  for (int i = 0; i < N; i++) {
    color[a[i] / 400]++;
  }
  int color_cnt = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] != 0) color_cnt++;
  if (color_cnt == 0) {
    cout << 1 << " " << color[8] << endl;
  } else {
    cout << color_cnt << " " << color_cnt + color[8] << endl;
  }
  return 0;
}
