#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool occupied[8];
  fill(occupied, occupied + 8, false);
  int free = 0;
  for (long long i = 0; i < (long long)n; i++) {
    int a;
    cin >> a;
    if (a / 400 < 8) {
      occupied[a / 400] = true;
    } else {
      free++;
    }
  }
  int fixed = 0;
  for (long long i = 0; i < (long long)8; i++)
    if (occupied[i]) fixed++;
  cout << fixed << " " << min(8, fixed + free) << endl;
  return 0;
}
