#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<bool> c(8);
  int ansmax = 0;
  for (int i = 0; i < n; i++) {
    int k;
    cin >> k;
    if (k < 3200)
      c[k / 400] = true;
    else
      ansmax++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i]) ans++;
  }
  ansmax += ans;
  cout << ans << ' ' << ansmax << endl;
  return 0;
}
