#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  int b = 0, cnt = 0, dif = 0;
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    x /= 400;
    if (x >= 8)
      ++cnt;
    else {
      if (b & (1 << x)) continue;
      ++dif;
      b |= (1 << x);
    }
  }
  cout << max(1, dif) << " " << min(8, cnt + dif) << endl;
  return 0;
}
