#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int vip = 0;
  set<int> s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int c;
    cin >> c;
    if (c < 400) s.insert(1);
    for (int j = 1; j <= 7; j++) {
      if (400 * j <= c && c < 400 * j + 400) s.insert(j + 1);
    }
    if (c >= 3200) vip++;
  }
  int so = s.size(), p;
  if (so == 8)
    vip = 0;
  else if (8 - so <= vip)
    p = 8 - so;
  else
    p = vip;
  cout << so << " " << so + p << endl;
}
