#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
signed main() {
  int n;
  cin >> n;
  int a[n];
  vector<bool> v(8, 0);
  int ans = 0;
  for (int i = 0; i < (n); i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      ans++;
    else
      v[a[i] / 400] = 1;
  }
  int res = 0;
  for (int i = 0; i < (8); i++)
    if (v[i])
      res++;
    else
      cout << max(ans, res) << " " << ans + res << endl;
}
