#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long longinf = 1LL << 60;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
  int n;
  cin >> n;
  int a[n], b[10], c = 0;
  for (int i = 0; i < (int)(10); i++) b[i] = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    a[i] /= 400;
    if (a[i] <= 7)
      b[a[i]] = 1;
    else
      c++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++) ans += b[i];
  ans = max(ans, 1);
  cout << ans << " " << ans + c << endl;
  return 0;
}
