#include <bits/stdc++.h>
using namespace std;
int n;
int b[9];
int main() {
  for (int i = 0; i < 9; i++) b[i] = 0;
  cin >> n;
  int cont = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400) {
      b[0] = 1;
    } else if (a < 800) {
      b[1] = 1;
    } else if (a < 1200) {
      b[2] = 1;
    } else if (a < 1600) {
      b[3] = 1;
    } else if (a < 2000) {
      b[4] = 1;
    } else if (a < 2400) {
      b[5] = 1;
    } else if (a < 2800) {
      b[6] = 1;
    } else if (a < 3200) {
      b[7] = 1;
    } else {
      b[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] == 1) ans++;
  }
  cout << ans << " " << ans + b[8] << endl;
  return 0;
}
