#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> color(8, 0);
  int free_cnt = 0;
  for (int i = 0; i < (int)(n); ++i) {
    int a;
    cin >> a;
    if (a >= 3200) ++free_cnt;
    int v = a / 400;
    ++color[v];
  }
  int type = 0;
  for (int i = 0; i < (int)(8); ++i) {
    if (color[i] >= 1) ++type;
  }
  int min_ans = type;
  int max_ans = type + free_cnt;
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
