#include <bits/stdc++.h>
using namespace std;
int N, tmp;
bool OK[8];
int red = 0;
int ans = 0;
int main() {
  cin >> N;
  for (int((i)) = (0); ((i)) < ((8)); ((i))++) OK[i] = false;
  for (int((i)) = (0); ((i)) < ((N)); ((i))++) {
    cin >> tmp;
    tmp /= 400;
    if (tmp >= 8)
      red++;
    else
      OK[tmp] = true;
  }
  for (int((i)) = (0); ((i)) < ((8)); ((i))++)
    if (OK[i] == true) ans++;
  int Min, Max;
  if (ans == 0)
    Min = 1;
  else
    Min = ans;
  if (ans + red > 8)
    Max = 8;
  else
    Max = ans + red;
  cout << Min << " " << Max << endl;
  cin >> ans;
  return 0;
}
