#include <bits/stdc++.h>
using namespace std;
#pragma GCC diagnostic warning "-Wconversion"
using ll = long long;
int data[10];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    data[r / 400]++;
  }
  ll res = 0;
  for (int i = 0; i < 8; i++) {
    if (data[i] != 0) ++res;
  }
  cout << max(1LL, res) << " " << res + data[8] << endl;
}
