#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int b[9] = {0};
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    if (0 <= x && x <= 399)
      b[0]++;
    else if (400 <= x && x <= 799)
      b[1]++;
    else if (800 <= x && x <= 1199)
      b[2]++;
    else if (1200 <= x && x <= 1599)
      b[3]++;
    else if (1600 <= x && x <= 1999)
      b[4]++;
    else if (2000 <= x && x <= 2399)
      b[5]++;
    else if (2400 <= x && x <= 2799)
      b[6]++;
    else if (2800 <= x && x <= 3199)
      b[7]++;
    else if (3200 <= x)
      b[8]++;
  }
  int mn = 0;
  for (int i = 0; i < 8; ++i) mn += b[i] > 0;
  int mx = min(8, mn + b[8]);
  cout << mn << ' ' << mx << '\n';
}
