#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::string printVector(const std::vector<T> &data) {
  std::stringstream ss;
  std::ostream_iterator<T> out_it(ss, ", ");
  ss << "[";
  std::copy(data.begin(), data.end() - 1, out_it);
  ss << data.back() << "]";
  return ss.str();
}
const int MOD = 1e9 + 7;
const long long LINF = 1001002003004005006ll;
const int INF = 1001001001;
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int cnt[9] = {0};
  for (int i = (0); i < (N); ++i) {
    int s;
    cin >> s;
    if (s < 400)
      cnt[0]++;
    else if (s < 800)
      cnt[1]++;
    else if (s < 1200)
      cnt[2]++;
    else if (s < 1600)
      cnt[3]++;
    else if (s < 2000)
      cnt[4]++;
    else if (s < 2400)
      cnt[5]++;
    else if (s < 2800)
      cnt[6]++;
    else if (s < 3200)
      cnt[7]++;
    else
      cnt[8]++;
  }
  long long ans1 = 0;
  long long ans2 = 0;
  for (int i = (0); i < (8); ++i) {
    if (cnt[i] != 0) ans1++;
  }
  if (ans1 != 0)
    ans2 = ans1 + cnt[8];
  else
    ans2 = 1;
  cout << ans1 << " " << ans2 << endl;
}
