#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
template <class T>
bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  } else
    return false;
}
template <class T>
bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  } else
    return false;
}
class CColorfulLeaderboard {
 public:
  void solve(std::istream& cin, std::ostream& cout) {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
    vector<int64_t> col(9, 0);
    int64_t n;
    cin >> n;
    for (int64_t i = 0; i < n; i++) {
      int64_t foo;
      cin >> foo;
      if (foo >= 3200)
        col[8]++;
      else
        col[foo / 400]++;
    }
    int64_t mn = 0, mx = 0;
    for (int64_t i = 0; i < 8; i++) mn += (col[i] >= 1);
    mx = mn + col[8];
    cout << mn << ' ' << mx << '\n';
  }
  void main2(istream& cin, ostream& cout) {}
};
int main() {
  CColorfulLeaderboard solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
