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