#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t, i, x, j, k, n, a[8] = {0}, legend = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> x;
    if (x > 3199)
      legend++;
    else if (x > 2799)
      a[7] = 1;
    else if (x > 2399)
      a[6] = 1;
    else if (x > 1999)
      a[5] = 1;
    else if (x > 1599)
      a[4] = 1;
    else if (x > 1199)
      a[3] = 1;
    else if (x > 799)
      a[2] = 1;
    else if (x > 399)
      a[1] = 1;
    else if (x < 399)
      a[0] = 1;
  }
  long long Cmini = 0;
  for (i = 0; i < 8; i++) {
    if (a[i]) Cmini++;
  }
  cout << Cmini << " " << Cmini + legend << endl;
  return 0;
}
