#include <bits/stdc++.h>
using namespace std;
int a[101];
bool c[8];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int sum1 = 0;
  int sum2 = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    int num = a[i] / 400;
    if (num >= 8) {
      ++sum2;
    } else if (!c[num]) {
      c[num] = true;
      ++sum1;
      ++sum2;
    }
  }
  cout << sum1 << " " << sum2 << endl;
}
