#include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
using namespace std;
void CINT() {}
template <class Head, class... Tail>
void CINT(Head&& head, Tail&&... tail) {
  cin >> head;
  CINT(move(tail)...);
}
template <class T = long long>
T IN() {
  T x;
  cin >> x;
  return (x);
}
template <class Head>
void VT(Head head) {}
template <class Head, class Seco, class... Tail>
void VT(Head&& head, Seco&& seco, Tail&&... tail) {
  seco.resize(head);
  VT(head, move(tail)...);
}
void VT2() {}
template <class Head, class... Tail>
void VT2(Head&& head, Tail&&... tail) {
  for (auto& youso_ : (head)) cin >> youso_;
  VT2(move(tail)...);
}
template <class Head>
void VT3(Head&& head) {}
template <class Head, class Seco, class... Tail>
void VT3(Head&& head, Seco&& seco, Tail&&... tail) {
  seco[head] = IN();
  VT3(head, move(tail)...);
}
int main() {
  int n;
  CINT(n);
  vector<long long> a;
  VT(n, a);
  VT2(a);
  ;
  set<long long> s;
  int cou = 0;
  for (int i = 0; i < (n); ++i) {
    if (a[i] >= 3200) {
      cou++;
      continue;
    }
    int t = (a[i] - 1) / 400;
    s.insert(t);
  }
  if (s.size() == 0)
    cout << (1) << " ";
  else
    cout << (s.size()) << " ";
  cout << (s.size() + cou) << endl;
  return 0;
}
