#include <bits/stdc++.h>
using namespace std;
inline void print() { cout << endl; }
template <typename First, typename... Rest>
void print(const First &first, const Rest &...rest) {
  cout << first << ' ';
  print(rest...);
}
template <typename T>
void print(const vector<T> &v) {
  for (auto e : v) cout << e << ' ';
  cout << endl;
}
void solve() {
  int N;
  cin >> N;
  vector<int> rate(12);
  int tourist = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    rate[a / 400]++;
    if (a >= 3200) tourist++;
  }
  int mi = 0, ma = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i]) mi++, ma++;
  }
  ma += tourist;
  print(mi, ma);
}
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  solve();
  return 0;
}
