#include <bits/stdc++.h>
using namespace std;
long long int n = 0, m = 0, ans = 0, sum = 0, cnt = 0, tmp = 0, ma = 0, mi = 0;
string s;
bool flag, ok;
long long int dx[4] = {1, -1, 0, 0}, dy[4] = {0, 0, 1, -1};
long long int ddx[8] = {1, -1, 0, 0, 1, 1, -1, -1},
              ddy[8] = {0, 0, 1, -1, 1, -1, 1, -1};
int main(void) {
  cin >> n;
  map<long long int, long long int> mp;
  for (long long int i = (long long int)(0); i < (long long int)(n); i++) {
    cin >> tmp;
    tmp /= 400;
    if (tmp > 8) tmp = 8;
    mp[tmp]++;
  }
  tmp = 0;
  for (auto it : mp) {
    cnt++;
    if (it.first == 8) {
      tmp = it.second;
      cnt--;
    }
  }
  if (cnt == 0) {
    cout << "1 " << tmp << endl;
  }
  cout << cnt << " " << cnt + tmp << endl;
  return 0;
}
