#include <bits/stdc++.h>
template <class T, class S>
void cmin(T &a, const S &b) {
  if (a > b) a = b;
}
template <class T, class S>
void cmax(T &a, const S &b) {
  if (a < b) a = b;
}
using namespace std;
int main() {
  int n;
  vector<int> v(9, 0);
  cin >> n;
  int sp = 0;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    if (1 <= temp && temp <= 399)
      v[0]++;
    else if (400 <= temp && temp <= 799)
      v[1]++;
    else if (800 <= temp && temp <= 1199)
      v[2]++;
    else if (1200 <= temp && temp <= 1599)
      v[3]++;
    else if (1600 <= temp && temp <= 1999)
      v[4]++;
    else if (2000 <= temp && temp <= 2399)
      v[5]++;
    else if (2400 <= temp && temp <= 2799)
      v[6]++;
    else if (2800 <= temp && temp <= 3199)
      v[7]++;
    else
      sp++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++)
    if (v[i]) cnt++;
  cout << max(1, cnt) << " " << min(8, cnt + sp) << endl;
}
