#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, piyo[8] = {}, hoge = 0, ans = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      piyo[a / 400]++;
    else
      hoge++;
  }
  for (int j = 0; j < 8; j++)
    if (piyo[j] > 0) ans++;
  cout << ans << " " << ans + hoge << endl;
  return 0;
}
