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