#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
queue<pair<int, int> > que;
int main() {
  int n;
  cin >> n;
  int type[9];
  for (int i = 0; i < 9; i++) type[i] = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    rate /= 400;
    if (rate >= 8) rate = 8;
    type[rate] += 1;
  }
  int small = 0;
  int large;
  for (int i = 0; i < 8; i++) {
    if (type[i] > 0) small += 1;
  }
  large = min(8, small + type[8]);
  if (small == 0) small = 1;
  cout << small << " " << large << endl;
}
