#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> mp;
  int N;
  cin >> N;
  for (int n = 0; n < N; n++) {
    int a;
    cin >> a;
    mp[a / 400]++;
  }
  int ans = 0;
  int tans = 0;
  for (auto itr = mp.begin(); itr != mp.end(); itr++) {
    if (itr->first > 7) {
      tans += itr->second;
      continue;
    }
    if (itr->second > 0) ans++;
  }
  cout << ans << " " << ans + tans << endl;
  return 0;
}
