#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  enum Rate {
    Gray = 0,
    Brown,
    Green,
    Sky,
    Blue,
    Yellow,
    Orage,
    Red,
    God,
    Count
  };
  std::vector<int> rates(Rate::Count);
  for (int i = 0; i < n; ++i) {
    int a;
    std::cin >> a;
    ++rates[a / 400];
  }
  int humansColorNum = 0;
  for (int i = Rate::Gray; i < Rate::God; ++i) {
    if (rates[i] > 0) {
      ++humansColorNum;
    }
  }
  std::cout << std::max(humansColorNum, rates[God]) << " "
            << humansColorNum + rates[God] << std::endl;
  return 0;
}
