#include <bits/stdc++.h>
using namespace std;
int main() {
  auto& stream = cin;
  int count8 = 0;
  set<int> color_counts;
  int n;
  stream >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    stream >> a;
    a = min(3200, a);
    a /= 400;
    color_counts.insert(a);
    if (a == 8) count8++;
  }
  int ans_min = color_counts.size() - (0 < count8);
  int ans_max = color_counts.size() - (0 < count8) + count8;
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
