#include <bits/stdc++.h>
using namespace std;
int boja(int x) {
  if (x <= 399) return 1;
  if (x <= 799) return 2;
  if (x <= 1199) return 3;
  if (x <= 1599) return 4;
  if (x <= 1999) return 5;
  if (x <= 2399) return 6;
  if (x <= 2799) return 7;
  if (x <= 3199) return 8;
  return 9;
}
map<int, int> br;
int main() {
  ios_base::sync_with_stdio(false);
  cout.precision(10);
  cout << fixed;
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    br[boja(x)]++;
  }
  int res = 0;
  for (int i = 1; i <= 8; i++) {
    if (br[i]) res++;
  }
  if (!br[9]) {
    cout << res << " " << res << "\n";
  }
  if (br[9]) {
    if (res == 0)
      cout << 1;
    else
      cout << res;
    cout << " " << min(8, res + br[9]);
  }
  return 0;
}
