#include <bits/stdc++.h>
using namespace std;
int col[9];
signed main() {
  int n;
  int a[1000];
  cin >> n;
  for (int(i) = 0; (i) < (int)(n); (i)++) cin >> a[i];
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    a[i] = min(3200, a[i]);
    col[a[i] / 400]++;
  }
  int res = 0;
  for (int(i) = 0; (i) < (int)(8); (i)++) {
    res += min(1, col[i]);
  }
  cout << res << " " << res + col[8] << endl;
}
