#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  bool colors[8] = {false};
  int free = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      colors[0] = true;
    else if (a <= 799)
      colors[1] = true;
    else if (a <= 1199)
      colors[2] = true;
    else if (a <= 1599)
      colors[3] = true;
    else if (a <= 1999)
      colors[4] = true;
    else if (a <= 2399)
      colors[5] = true;
    else if (a <= 2799)
      colors[6] = true;
    else if (a <= 3199)
      colors[7] = true;
    else
      free++;
  }
  int ans_min = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i]) ans_min++;
  }
  if (ans_min == 0) ans_min = 1;
  int ans_max = ans_min + free;
  if (ans_max > 8) ans_max = 8;
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
