#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (long long i = 0; i < (long long)(n); i++) cin >> v[i];
  vector<int> c(9, 0);
  for (long long i = 0; i < (long long)(n); i++) {
    if (v[i] <= 399)
      c[0]++;
    else if (v[i] <= 799)
      c[1]++;
    else if (v[i] <= 1199)
      c[2]++;
    else if (v[i] <= 1599)
      c[3]++;
    else if (v[i] <= 1999)
      c[4]++;
    else if (v[i] <= 2399)
      c[5]++;
    else if (v[i] <= 2799)
      c[6]++;
    else if (v[i] <= 3199)
      c[7]++;
    else
      c[8]++;
  }
  int mini = 0, maxi = 0;
  for (long long i = 0; i < (long long)(8); i++)
    if (c[i] != 0) mini++;
  maxi = mini;
  cout << mini << " " << maxi + c[8] << endl;
}
