#include <bits/stdc++.h>
using namespace std;
static const int INF = 2000000000;
int main() {
  int n;
  cin >> n;
  vector<int> d(9, 0);
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    if (a < 400)
      d[0]++;
    else if (400 <= a && a < 800)
      d[1]++;
    else if (800 <= a && a < 1200)
      d[2]++;
    else if (1200 <= a && a < 1600)
      d[3]++;
    else if (1600 <= a && a < 2000)
      d[4]++;
    else if (2000 <= a && a < 2400)
      d[5]++;
    else if (2400 <= a && a < 2800)
      d[6]++;
    else if (2800 <= a && a < 3200)
      d[7]++;
    else if (3200 <= a)
      d[8]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (d[i] > 0)
      ans++;
    else
      continue;
  }
  int res = ans + d[8];
  if (res >= 8) res = 8;
  cout << ans << " " << res << endl;
}
