#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[10] = {0}, x, ans = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    if (x > 3199)
      a[9]++;
    else if (x > 2799)
      a[8]++;
    else if (x > 2399)
      a[7]++;
    else if (x > 1999)
      a[6]++;
    else if (x > 1599)
      a[5]++;
    else if (x > 1199)
      a[4]++;
    else if (x > 799)
      a[3]++;
    else if (x > 399)
      a[2]++;
    else
      a[1]++;
  }
  for (int i = 1; i < 9; ++i)
    if (a[i]) ans++;
  cout << min(8, max(1, ans + max(0, a[9] - ans))) << " " << min(8, ans + a[9]);
}
