#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a / 400 >= 8)
      cnt++;
    else
      mp[a / 400]++;
  }
  cout << mp.size() << " " << mp.size() + cnt << endl;
  return 0;
}
