#include <bits/stdc++.h>
using ll = long long;
int main() {
  int N;
  std::cin >> N;
  std::vector<int> a(9);
  for (int i = 0; i < N; i++) {
    int x;
    std::cin >> x;
    int in = std::min(9, (x / 400));
    a[in]++;
  }
  int ans = 0;
  for (int i = 0; i < 9; i++) {
    if (a[i] > 0) ans++;
  }
  if (a[8] > 0) ans--;
  std::cout << ans << " ";
  ans += a[8];
  std::cout << ans << std::endl;
}
