#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
const long long MOD = 1000000007;
int main() {
  int n;
  cin >> n;
  int type[9] = {};
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    rate /= 400;
    if (rate >= 8) rate = 8;
    type[rate] += 1;
  }
  int small = 0;
  for (int i = 0; i < 8; i++) {
    if (type[i] > 0) small += 1;
  }
  int large = min(9, small + type[8]);
  if (small == 0) small = 1;
  cout << small << " " << large << endl;
}
