#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  int all = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate < 400) {
      mp[0]++;
    } else if (400 <= rate && rate < 800) {
      mp[1]++;
    } else if (800 <= rate && rate < 1200) {
      mp[2]++;
    } else if (1200 <= rate && rate < 1600) {
      mp[3]++;
    } else if (1600 <= rate && rate < 2000) {
      mp[4]++;
    } else if (2000 <= rate && rate < 2400) {
      mp[5]++;
    } else if (2400 <= rate && rate < 2800) {
      mp[6]++;
    } else if (2800 <= rate && rate < 3200) {
      mp[7]++;
    } else {
      all++;
    }
  }
  int now_num = mp.size();
  cout << now_num << " " << now_num + all << endl;
}
