#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> s;
  int a;
  for (int i = 0; i < (N); i++) {
    cin >> a;
    s[min(8, a / 400)]++;
  }
  int retval = 0;
  for (int i = 0; i < (8); i++)
    if (s[i] != 0) retval++;
  cout << max(1, retval) << " " << min(8, retval + s[8]) << endl;
  return 0;
}
