#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  int colors[9] = {0};
  for (int i = 0; i < N; i++) {
    if (1 <= a[i] && a[i] <= 399)
      colors[0]++;
    else if (400 <= a[i] && a[i] <= 799)
      colors[1]++;
    else if (800 <= a[i] && a[i] <= 1199)
      colors[2]++;
    else if (1200 <= a[i] && a[i] <= 1599)
      colors[3]++;
    else if (1600 <= a[i] && a[i] <= 1999)
      colors[4]++;
    else if (2000 <= a[i] && a[i] <= 2399)
      colors[5]++;
    else if (2400 <= a[i] && a[i] <= 2799)
      colors[6]++;
    else if (2800 <= a[i] && a[i] <= 3199)
      colors[7]++;
    else
      colors[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i] > 0) ans++;
  }
  cout << ans << " ";
  cout << ans + colors[8] << endl;
  return 0;
}
