#include <bits/stdc++.h>
using namespace std;
const int INF = 100100100;
const long long LINF = 1e18 + 100;
const int MOD = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ;
  int N;
  cin >> N;
  vector<int> c(N);
  for (int i = 0; i < (N); i++) {
    cin >> c[i];
  }
  vector<int> clr(10);
  for (int i = 0; i < (N); i++) {
    if (c[i] < 400) {
      clr[0]++;
    } else if (c[i] < 800) {
      clr[1]++;
    } else if (c[i] < 1200) {
      clr[2]++;
    } else if (c[i] < 1600) {
      clr[3]++;
    } else if (c[i] < 2000) {
      clr[4]++;
    } else if (c[i] < 2400) {
      clr[5]++;
    } else if (c[i] < 2800) {
      clr[6]++;
    } else if (c[i] < 3200) {
      clr[7]++;
    } else {
      clr[8]++;
    }
  }
  int min = 0;
  int max = 0;
  for (int i = 0; i < (9); i++) {
    min += clr[i] != 0;
  }
  max = min + ((clr[8] > 0) ? clr[8] - 1 : 0);
  cout << min << ' ' << max << endl;
}
