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