#include <bits/stdc++.h>
using namespace std;
int dx[4] = {0, 0, -1, 1};
int dy[4] = {-1, 1, 0, 0};
int main() {
  int N;
  int a[101];
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int rate = 0;
  int hum[10] = {};
  for (int i = 0; i < 9; i++) {
    for (int j = 0; j < N; j++) {
      if (rate <= a[j] && a[j] < (rate + 400)) {
        hum[i]++;
      }
    }
    rate += 400;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (hum[i]) {
      ans++;
    }
  }
  cout << ans << " " << ans + hum[8] << endl;
  for (int i = 0; i < 9; i++) {
  }
  return 0;
}
