#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[110];
  bool color[8] = {false};
  int freecolor = 0, ans = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  for (int i = 0; i < n; ++i) {
    int num = a[i] / 400;
    if (num >= 8)
      ++freecolor;
    else if (!color[num]) {
      color[num] = true;
      ++ans;
    }
  }
  if (ans == 0) cout << ans << " " << ans + freecolor << endl;
  return 0;
}
