#include <bits/stdc++.h>
int main() {
  int color[8] = {0};
  int n;
  std::cin >> n;
  int tourist = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    std::cin >> rate;
    if (rate >= 3200) {
      tourist++;
    } else {
      color[rate / 400] = 1;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += color[i];
  }
  std::cout << ans << " " << std::min(ans + tourist, 8) << std::endl;
  return 0;
}
