#include <bits/stdc++.h>
using namespace std;
bool ch(int i, int a, int b) {
  if (a <= i && i <= b)
    return true;
  else
    return false;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a.at(i);
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    int j = a.at(i);
    if (ch(j, 1, 399))
      color.at(0) = 1;
    else if (ch(j, 400, 799))
      color.at(1) = 1;
    else if (ch(j, 800, 1199))
      color.at(2) = 1;
    else if (ch(j, 1200, 1599))
      color.at(3) = 1;
    else if (ch(j, 1600, 1999))
      color.at(4) = 1;
    else if (ch(j, 2000, 2399))
      color.at(5) = 1;
    else if (ch(j, 2400, 2799))
      color.at(6) = 1;
    else if (ch(j, 2800, 3199))
      color.at(7) = 1;
    else
      color.at(8)++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    min += color.at(i);
  }
  if (min == 0) min = 1;
  int max;
  if (min + color.at(8) >= 8)
    max = 8;
  else
    max = min + color.at(8);
  cout << min << " " << max << endl;
}
