#include <bits/stdc++.h>
using namespace std;
long long dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
          dy[8] = {1, 1, 0, -1, -1, -1, 0, 1};
template <class T>
inline bool maxi(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool mini(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  long long n, in, free = 0;
  cin >> n;
  bool c[8] = {0};
  for (int i = (0), i_len = (n); i < i_len; ++i) {
    cin >> in;
    if (in >= 3200)
      free++;
    else
      c[in / 400] = 1;
  }
  long long ans = 0;
  for (int i = (0), i_len = (8); i < i_len; ++i) ans += c[i];
  cout << ans << ' ' << ans + free << "\n";
  1;
}
