#include <bits/stdc++.h>
int main() {
  int colors[8];
  for (int i = 0; i < 8; i++) colors[i] = 0;
  int proCount = 0;
  int length;
  std::cin >> length;
  for (int i = 0; i < length; i++) {
    int rate;
    std::cin >> rate;
    if (rate >= 3200) {
      proCount += 1;
      continue;
    } else
      colors[rate / 400] = 1;
  }
  int colorCount = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i] != 0) colorCount += 1;
  }
  std::cout << colorCount << " " << std::min(8, (colorCount + proCount));
  return 0;
}
