#include <bits/stdc++.h>
using namespace std;
int a[9];
int main(void) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int temp;
  for (int i = 0; i < n; ++i) {
    cin >> temp;
    if (temp >= 3200) {
      a[8]++;
    } else {
      a[temp / 400]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      ++cnt;
    }
  }
  int maximum = min(cnt + a[8], 8);
  int minimum = cnt;
  cout << minimum << " " << maximum << endl;
  return 0;
}
