#include <bits/stdc++.h>
using namespace std;
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& vec) {
  os << "[ ";
  for (int i = (0); i < (vec.size()); ++i) {
    os << vec[i] << " ";
  }
  os << "]";
  return os;
}
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int N;
  cin >> N;
  int rs = 0;
  int n = 0;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    if (a >= 3200) {
      ++n;
      continue;
    }
    rs |= (1 << int(floor(a / 400)));
  }
  int result = 0;
  for (int i = (0); i < (8); ++i) {
    result += (rs >> i) % 2;
  }
  cout << result << " " << min(8, result + n) << endl;
}
