#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  bool c[8];
  for (int i = 0; i < 8; i++) c[i] = false;
  int ans = 0, leg = 0;
  for (int i = 0; i < N; i++) {
    for (int j = 1; j < 9; j++) {
      if (a[i] >= 3200) {
        leg++;
        break;
      }
      if (a[i] >= (j - 1) * 400 && a[i] < j * 400) c[j - 1] = true;
    }
  }
  for (int i = 0; i < 8; i++)
    if (c[i]) ans++;
  cout << ans << " " << ans + leg << endl;
}
