#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e7 + 1;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
long long int n, k, ans = 0, sum = 0, cnt = 0;
string s;
char c;
int main() {
  cin >> n;
  vector<long long int> v(n);
  long long int w[8] = {0};
  for (long long int i = (long long int)(0); i < (long long int)(n); i++)
    cin >> v[i];
  sort(v.begin(), v.end());
  for (long long int i = (long long int)(0); i < (long long int)(n); i++) {
    if (v[i] < 400) {
      w[0]++;
    } else if (v[i] < 800) {
      w[1]++;
    } else if (v[i] < 1200) {
      w[2]++;
    } else if (v[i] < 1600) {
      w[3]++;
    } else if (v[i] < 2000) {
      w[4]++;
    } else if (v[i] < 2400) {
      w[5]++;
    } else if (v[i] < 2800) {
      w[6]++;
    } else if (v[i] < 3200) {
      w[7]++;
    } else {
      sum++;
    }
  }
  for (long long int i = (long long int)(0); i < (long long int)(8); i++) {
    if (w[i] != 0) {
      ans++;
    }
  }
  if (ans + sum >= 8) {
    k = 8;
  } else {
    k = ans + sum;
  }
  if (ans == 0) {
    cout << 1 << ' ' << k << endl;
  } else {
    cout << ans << ' ' << k << endl;
  }
}
