#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N), ans(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < N; i++) {
    if (a[i] <= 399) {
      ans[i] = 1;
    } else if (a[i] <= 799) {
      ans[i] = 2;
    } else if (a[i] <= 1199) {
      ans[i] = 3;
    } else if (a[i] <= 1599) {
      ans[i] = 4;
    } else if (a[i] <= 1999) {
      ans[i] = 5;
    } else if (a[i] <= 2399) {
      ans[i] = 6;
    } else if (a[i] <= 2799) {
      ans[i] = 7;
    } else if (a[i] <= 3199) {
      ans[i] = 8;
    } else {
      ans[i] = 9;
    }
  }
  if (N == 1) {
    cout << 1 << " " << 1 << endl;
    exit(0);
  }
  sort(ans.begin(), ans.end());
  int count = 0, r = 8, r9 = 0;
  if (ans[0] == 9) {
    r9++;
  } else {
    count++;
    r--;
  }
  for (int i = 1; i < N; i++) {
    if (ans[i] == 9) {
      r9++;
      continue;
    }
    if (ans[i] == ans[i - 1]) {
      continue;
    }
    count++;
    r--;
  }
  int count1 = 0;
  if (r >= r9) {
    count1 = r9;
  } else {
    count1 = r;
  }
  if (N == r9) {
    if (r9 >= 9) {
      cout << 1 << " " << 9 << endl;
      exit(0);
    }
    cout << 1 << " " << r9;
    exit(0);
  }
  cout << count << " " << count + count1 << endl;
}
