#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int a[n];
  int count[9];
  int ans = 0;
  int MIN = 0, MAX = 0;
  for (int i = 0; i < 9; i++) count[i] = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) a[i] = 3200;
    count[a[i] / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (count[i] >= 1) ans++;
  }
  MIN = ans;
  MAX = ans;
  if (count[8] > 0) {
    MAX = ans + count[8];
  }
  cout << MIN << " " << MAX << endl;
  return 0;
}
