#include <bits/stdc++.h>
using ll = long long;
template <class T>
using vt = std::vector<T>;
using vvi = std::vector<vt<int>>;
int main() {
  int n;
  std::cin >> n;
  vt<int> v(9);
  for (int i = 0; i < (int)n; i++) {
    int a;
    std::cin >> a;
    if (a / 400 < 8)
      v[a / 400] = 1;
    else
      v[8]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)8; i++) {
    ans += v[i];
  }
  if (ans == 0) ans++;
  std::cout << ans << ' ' << ans + v[8] << '\n';
  return 0;
}
