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