#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int free_cnt = 0;
  vector<int> color_cnt(8, 0);
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      free_cnt++;
    } else {
      color_cnt[a / 400] = 1;
    }
  }
  int accum = accumulate(color_cnt.begin(), color_cnt.end(), 0);
  if (accum == 0) {
    cout << accum << " " << accum + free_cnt;
  } else {
    cout << 1 << " " << free_cnt;
  }
  return 0;
}
