#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
const long INF64 = 1000000000000000ll;
const int MOD = 1000000007;
int main() {
  int n;
  std::cin >> n;
  std::vector<int> c(9, 0);
  for (int i = 0; i < (int)(n); i++) {
    int a;
    std::cin >> a;
    if (a <= 399)
      c[0]++;
    else if (a <= 799)
      c[1]++;
    else if (a <= 1199)
      c[2]++;
    else if (a <= 1599)
      c[3]++;
    else if (a <= 1999)
      c[4]++;
    else if (a <= 2399)
      c[5]++;
    else if (a <= 2799)
      c[6]++;
    else if (a <= 3199)
      c[7]++;
    else
      c[8]++;
  }
  int counter = 0, acounter = 0;
  for (int i = 0; i < (int)(8); i++)
    if (c[i] != 0) counter++;
  acounter = counter;
  if (counter == 0 && c[8] != 0) acounter++;
  std::cout << acounter << ' ' << min(counter + c[8], 9) << std::endl;
}
