#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long int n;
  cin >> n;
  set<long long int> s;
  long long int cnt = 0;
  for (long long int i = 0; i < n; i++) {
    long long int temp;
    cin >> temp;
    if (temp >= 3200)
      cnt++;
    else {
      s.insert(temp / 400);
    }
  }
  if (s.size() == 0) {
    cout << 1 << " " << 1 << endl;
  } else
    cout << s.size() << " " << cnt + s.size() << endl;
}
