#include <bits/stdc++.h>
int N, a[112];
int ans, randm;
bool color[8];
int main() {
  std::cin >> N;
  for (long long int i = 0; i < N; ++i) {
    std::cin >> a[i];
  }
  memset(color, false, sizeof(color));
  for (long long int i = 0; i < N; ++i) {
    if (a[i] < 3200) {
      if (1 <= a[i] && a[i] <= 399) {
        color[0] = true;
      }
      if (400 <= a[i] && a[i] <= 799) {
        color[1] = true;
      }
      if (800 <= a[i] && a[i] <= 1199) {
        color[2] = true;
      }
      if (1200 <= a[i] && a[i] <= 1599) {
        color[3] = true;
      }
      if (1600 <= a[i] && a[i] <= 1999) {
        color[4] = true;
      }
      if (2000 <= a[i] && a[i] <= 2399) {
        color[5] = true;
      }
      if (2400 <= a[i] && a[i] <= 2799) {
        color[6] = true;
      }
      if (2800 <= a[i] && a[i] <= 3199) {
        color[7] = true;
      }
    } else {
      ++randm;
    }
  }
  for (long long int i = 0; i < 8; ++i) {
    if (color[i]) {
      ++ans;
    }
  }
  std::cout << ans << " " << std::min(ans + randm, 8) << std::endl;
  return 0;
}
