#include <bits/stdc++.h>
using namespace std;
template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()) {
  v.assign(a, vector<T>(b, t));
}
template <class F, class T>
void convert(const F &f, T &t) {
  stringstream ss;
  ss << f;
  ss >> t;
}
void mainmain() {
  int n;
  cin >> n;
  set<int> second;
  int ans = 0;
  for (int(i) = (0); (i) < ((n)); ++(i)) {
    int t;
    cin >> t;
    if (t >= 3200)
      ans++;
    else {
      second.insert(t / 400);
    }
  }
  ans += second.size();
  cout << second.size() << " " << ans << endl;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(20);
  mainmain();
}
