#include <bits/stdc++.h>
using namespace std;
int n, x;
int bal = 0;
map<int, int> m;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (x >= 1 && x <= 399)
      m[0]++;
    else if (x >= 400 && x <= 799)
      m[1]++;
    else if (x >= 800 && x <= 1199)
      m[2]++;
    else if (x >= 1200 && x <= 1599)
      m[3]++;
    else if (x >= 1600 && x <= 1999)
      m[4]++;
    else if (x >= 2000 && x <= 2399)
      m[5]++;
    else if (x >= 2400 && x <= 2799)
      m[6]++;
    else if (x >= 2800 && x <= 3199)
      m[7]++;
    else
      bal++;
  }
  x = m.size();
  cout << x << " " << x + bal << endl;
}
