#include <bits/stdc++.h>
using namespace std;
int a[1001];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  int ans = 0, cnt = 0;
  int b = 1, c = 399, m = 400;
  for (int i = 0; i < n; ++i) {
    if (a[i] >= b && a[i] <= c) {
      ans++;
      while (a[i] <= c) {
        i++;
      }
      i--;
    } else {
      while (a[i] > c) {
        if (b == 1) {
          b -= 1;
        }
        b += m;
        c += m;
      }
      if (c >= 3200) {
        i++;
      }
      i--;
    }
    if (a[i] >= 3200 && i > -1) {
      cnt += n - i;
      break;
    }
  }
  if (ans == 0) {
    ans++;
  }
  cout << ans << ' ' << ans + cnt << endl;
  return 0;
}
