#include <bits/stdc++.h>
using namespace std;
template <class A>
void pr(A a) {
  cout << (a) << endl;
}
template <class A, class B>
void pr(A a, B b) {
  cout << a << " ";
  pr(b);
}
template <class A, class B, class C>
void pr(A a, B b, C c) {
  cout << a << " ";
  pr(b, c);
}
template <class A, class B, class C, class D>
void pr(A a, B b, C c, D d) {
  cout << a << " ";
  pr(b, c, d);
}
template <class T>
inline bool chmin(T& a, T b) {
  return a > b ? a = b, true : false;
}
template <class T>
inline bool chmax(T& a, T b) {
  return a < b ? a = b, true : false;
}
int main(void) {
  int N;
  cin >> N;
  map<int, int> m;
  for (int i = 0; i < int(N); ++i) {
    int a;
    cin >> a;
    m[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < int(9); ++i) {
    if (m[i] > 0) ans++;
  }
  int over = 0;
  for (int i = 9; i < 20; i++) {
    over += m[i];
  }
  pr(ans, ans + over);
}
